StatusBar resize doesnt cause DataGrid vertical scrollbars

D

Dave Taylor

I have a StatusBar control docked to the bottom of the screen, a horizontal
splitter control just above that, and then a DataGrid control that has its
docking property set to Fill above that. (I'm trying to create a
"Properties Window" similar to the Properties Window in Visual Studio). The
problem is, when I resize the StatusBar, making it larger by moving the
splitter control, it does not force DataGrid to redraw and display the
vertical scrollbars. I would think this is automatic, or do I need to
Invalidate() the DataGrid every time the splitter is moved?
 
D

Dave Taylor

Never mind!! I found that it was the order I inserted the controls at design
time that was causing the problem. Cutting and pasting the DataGrid back
into the form fixed it up.
 

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