datagrid resize vb.net

Is there a way to allow the user to resize a datagrid?
jackjohnson44Asked:
Who is Participating?
 
SanclerConnect With a Mentor Commented:
>>
Is there an event when the main mdi window is stretched?
<<

Resize

Roger
0
 
mani_saiCommented:
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
0
 
jackjohnson44Author Commented:
is there a way to stretch it to be the same width of the main window, when it is stretched?
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
SanclerCommented:
Have a look at its .Anchor property.

Roger
0
 
kaliyugkaarjunCommented:
Hi

Does ur mainwindow have any other controls?


set the datgrid property width = "100%"

It will resize as window is stretched.
0
 
jackjohnson44Author Commented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.