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

asp.net - Change the driver in the connection string to a data source in VB.Net -

Getting started consuming web services in a Ruby on Rails 3 application -

objective c - iPhone and it's wireless area -