I was wondering whether it is possible to remove the unused space ( the gray space ) of the DataGridView control in C#. I have to make the DataGridView>
DataGridView
DataGridView>
I believe you want:
myDataGrid.AutoSizeColumnsMode = Fill
EDIT: This just resizes the columns. I'm not sure how you would get rid of row gray space other than resizing the grid's height.