Increase the DataGridView Columns width dynamically

Progress2007

Active member
Joined
Sep 5, 2008
Messages
25
Programming Experience
1-3
Hi
I am using VB.NET 2008.
I have a dataGridView and wht i want that when form resizes the column should also be resizes. My probelm is that i have to do it programatically. beacuse grid is containes in a Panel.

User can resize by two ways, etither by clicking maximize button, or by resizing the form manually at run time.

Please tell me how can i achieve this.
 
Are you talking about resizing the grid control or the columns within the grid? Controls can resize dynamically if you set Dock or Anchor properties, columns can resize dynamically with the AutoSizeMode property of the column.
 
Back
Top