I am working on a windows application.
I am binding a column of a table from the database in a datagrid.But when it is populated its getting its actual dimention and开发者_开发百科 some space is left blank in the datagrid...is it possible that the column of the table would rather take the actual full dimention of the datagrid while populating.
Waiting for your reply...
Set the AutoSizeColumnsMode
property of the DataGridView
to Fill
.
The DataGridViewColumn
also has an AutoSize
property, so you can set the behavior for each column individually if you want to have them sized differently.
精彩评论