开发者

Fixing the width of the table being binded in the datagrid

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜