开发者

Fixing the width of the table being binded in the datagrid

开发者 https://www.devze.com 2023-01-27 07:38 出处:网络
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

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

精彩评论

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

关注公众号