Discussion Locked

resizing a datagrid

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

want a datagrid in vb to resize itself depending on the no of colums it has to display on a fixed form size.
A mininum of 4columns and a max of 8columns

5 replies

by jnlclayton

Depending on which grid you are using you may have a default ColWidth property. If you do then set the default(design time) grid width property to accomodate your 4 col's then based upon your logic for adding columns increase the gridwidth by the value of your ColWidth.

by cedric king

I am not very sure about what do you really want but from what I understand, I believe the datagrid will so call resize itself based on it's input data.

This discussion is closed to new replies.