removing the empty gray space in datagrid in c# -


How do I remove an empty space, that is, I want the datagrid to automatically resize itself Should not be changed in I know the columns of rows that we can use in the AutoSizeColumnMode fill value, but there is no fill value for AutoSizeRowsMode.

is a bit of a hack but you can try it:

  dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control;  

BTWV has been here.


Comments

Popular posts from this blog

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -

.net - Self Tracking Entities (STE)'s and partial updates with EF4 and mVC2 -