resizing datagrid with form?

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

Guest

Hello,

If I place a panel control on a form and place a datagrid on the panel, is
there a property for the panel to resize with the form? I am sure there is.
I just can't remember what the setting is/are.

Once the pane resizes with the form if I place a datagrid on the panel and
dock it or anchor it will that resize the datagrid also? How can I make it
so that if the form gets resized, the datagrid gets resized with the form?

Thanks,
Rich
 
I figured it out. You have to dock the panel to the form by selecting any
one of 5 docking modes in the Dock property of the Panel, then do the same
with the datagrid, select any one of the 5 docking modes in the Dock property
of the datagrid.
 
docking is one way, anchoring is the other. Anchoring allows controls to
float about a particular form space rather than being bound to a given form
edge.

tm
 

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