The DataGridView (Form) holds enough rows that the vertical Scrollbar is shown. But its not enabled. The Silder for Movement is missing and the Button Up and Button Down are greyed out.
=> there is a vertical scrollbar but not enabled.
I tried:
If I resize the Control while running (DataGridView is on a Splitpanel) the Scrollbar can be used e.g its now enabled.
Try this:
1. One of your columns has probably frozen property set as True
.
which should be False
for all columns.
2. Set the AutoSizeMode of the problematic column to AllCells
3. mygrid.DockStyle = DockStyle.Fill
Set ScrollBar property of datagridview is Both.
The same problem plus some workarounds can be found here:
DataGridView vertical scrollbar not updating properly (Forms bug?)
It definitely seems to be a winforms bug that appears, e.g. when a DGV is placed inside a tab of a tabcontrol.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With