how to make control both Fill and Anchored ???

G

Guest

I want to have a DataGrid that fills up the entire Window but does not slip
underneath a StatusBar along the bottom...

currently I first set Anchor to AnchorStyles.Bottom then the Dock to
DockStyle.Fill. Upon resizing the window the DataGrid fills correctly but
then the horizontal scrollbar along the button slips under my StatusBar, so
you cannot see it anymore.

If I switch the order of setting the Anchor and Dock, It results in a
DataGrid which does not slip underneath the StatusBar and fills the initial
window but when I make the window bigger the DataGrid stays same size...

How do I solve this?
 
G

Guest

I was doing it all wrong, not supposed to just Anchor to the bottom but to
every edge. It looks good now.
 

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

Top