Search code examples
c#.netwinformsdatagridviewscrollbar

Horizontal Scrollbar is not visible on DataGridView


I have a DataGridView on Window form which is populated with 30 columns and thousands of rows. ScrollBars property is set to Both, but still horizontal scroll bar is not visible. even I am unable to scroll with arrow key from keyboard.

I tried it by setting ScrollBars property to Horizontal as well, but that does not make any difference.

Any suggestions please?

Thanks


Solution

  • Well Guys, its sorted out.

    I am answering my own question; it may help someone in future.

    one of the columns has Frozen property set as True. which should be false for all columns. Now ScrollBar is working absolutely fine for me.

    Cheers

    enter image description here