Link to home
Start Free TrialLog in
Avatar of jackjohnson44
jackjohnson44

asked on

datagrid resize vb.net

Is there a way to allow the user to resize a datagrid?
Avatar of Mani Pazhana
Mani Pazhana
Flag of United States of America image

As far i know, you can resize the columns/rows by default.

You can also prevent users from sizing columns.

Regarding resizing the entire datagrid prgrammatically, you can do that.

But allowing users to resize the entire datagrid at run time, i dont think it is possible.

Thanks
Avatar of jackjohnson44
jackjohnson44

ASKER

is there a way to stretch it to be the same width of the main window, when it is stretched?
Have a look at its .Anchor property.

Roger
Hi

Does ur mainwindow have any other controls?


set the datgrid property width = "100%"

It will resize as window is stretched.
Is there an event when the main mdi window is stretched?
I don't want to just set it to 100%.
I would like it have a border on the side and also have a maximum width
ASKER CERTIFIED SOLUTION
Avatar of Sancler
Sancler

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial