verticalscroll

C# UserControl.VerticalScroll.Value not being set

I've got a chunk of C# code that is supposed to set VerticalScroll.Value within a class that inherits from UserControl. It gets called when any child object of the class changes sizes. The class has its AutoScroll property set to true. public void ScrollTo(int top) { if (top >= this.VerticalScroll.Minimum && top <= thi...

How to scroll vertically in DataGridView in pixel increment

I am using the DataGridView control in my application, Some of the rows in the grid having height more than DataGridView height, for scrolling I have set the ScrollBars property to ScrollBars.Both. vertical scroll bar is coming properly but on clicking on scrollbar buttons it scroll by one row. Is there any way (or windows API call or pr...