how to make control both Fill and Anchored ???

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
I was doing it all wrong, not supposed to just Anchor to the bottom but to
every edge. It looks good now.
 
Back
Top