c# winforms: DataGridView scrollbar not showing

17,028

Simply,

myDataGridView.ScrollBars = ScrollBars.Both;
Share:
17,028
CMA
Author by

CMA

Hi!

Updated on June 04, 2022

Comments

  • CMA
    CMA about 2 years

    I am new to C# and Winforms..

    I am having a problem with my scrollbar in DataGridView.

    The vertical scrollbar image does not show, BUT you can scroll the grid using the using the mouse's scroll wheel.

    What should be done to properly handle my scrollbar in DataGridView. I have read several solutions but none of them were able to solve this issue. All of my columns already have Frozen Property set to false, and I have set the AutoSizeMode of the problematic column to AllCells. But didn't worked..

    • stakx - no longer contributing
      stakx - no longer contributing about 12 years
      Please be more specific: What have you tried already?
    • Raab
      Raab about 12 years
      myDataGridView.ScrollBars = ScrollBars.Auto
    • CMA
      CMA about 12 years
      @stakx: I have editted my question.