Rahul Krishnan R
Monday, September 6, 2010
How to set the width of an unbound column of datagrid in c# windows form ?
Add the following code after binding the data in to the datagrid:
dataGridView1.Columns[1].Width = 160;
Instead of Columns[1], we can give the index of the column of which we need to change the width.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment