C# DataGridView- How enable vertical scrollbar

.net, c#, datagridview

Solution

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

Problem

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: - After filling the DataGridView the control is updated. - Resizing the entire Panel. - The Frozen attribute is false. - I a click in a cell i can use the up and down keys to scroll, but the scrollbar will not be enabled. If I resize the Control while running (DataGridView is on a Splitpanel) the Scrollbar can be used e.g its now enabled.

Original source

Related problems