Hide scrollbars in DataGridView

I selected "None" for the ScrollBars property, but this prevents me from scrolling with the mouse. I would like to either remove the scrollbars or hide them while keeping the mouse scroll. Is it possible?

I decided (I can’t answer at 8 o’clock ...)

Sign up for the MouseWheel event and in the function ...

if(e.Delta > 0 && DGV.FirstDisplayedScrollingIndex > 0) { DGV.FirstDisplayedScrollingIndex--; } else if(e.Delta < 0) { DGV.FirstDisplayedScrollingIndex++; } 
+6
source share
1 answer

I solved it.

Sign up for the MouseWheel event and in the function ...

 if(e.Delta > 0) { } else if(e.Delta < 0) { } 
0
source

Source: https://habr.com/ru/post/906410/


All Articles