DataGridView always displaying a Vertical scrollbar

G

Guest

I have managed to always display a vertical scrollbar in a DataGridView by
subclassing the DataGridView and handling the
VerticalScrollBar.VisibleChanged event. The problem is that the horizonal
scrollbar appearance is based on the visible DataGridView view without the
vertical scrollbar. So if the user does a resize, about half of the last
column gets covered before the horizontal scrollbar appears.

It seems that DisplayRectangle tracks the correct visible size but I can't
find a way to change it that will effect the horizontal scrollbar.
Overriding DisplayRectangle did not work.

Thanks.
 

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