About DataGrid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have DataGrid in mt Form,
How can I resize the DataGrid respectively to the Form size changes?
Thanking you in anticipation!
 
In a winform?

Either set Dock = DockStyle.Fill, or set Anchor = AnchorStyles.Top |
AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right.

Marc
 
Hi,

Yael said:
Hi,
I have DataGrid in mt Form,
How can I resize the DataGrid respectively to the Form size changes?
Thanking you in anticipation!

You have several ways, you can use the docking capability of the win forms,
select the center square from the properties window, this is Fill.

That's the easiest way, additionaly you can intercept the Resize event of
the form and act accordingly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top