jackjohnson44
asked on
datagrid resize vb.net
Is there a way to allow the user to resize a datagrid?
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
Roger
Hi
Does ur mainwindow have any other controls?
set the datgrid property width = "100%"
It will resize as window is stretched.
Does ur mainwindow have any other controls?
set the datgrid property width = "100%"
It will resize as window is stretched.
ASKER
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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