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

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -