Srivastava
Srivastava

Reputation: 3578

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...

Upvotes: 0

Views: 27

Answers (1)

Jeff Ogata
Jeff Ogata

Reputation: 57783

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.

Upvotes: 1

Related Questions