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 property) to scroll the DataGridView in pixel increment.
I tried a solution of adding the DataGridView control to Panel provide the ScrollBar to panel instead of grid, this approach will work if height of DataGridView is less than around 33, 000 after that DataGridView is not working properly, we won't get proper mouse events and Editing also now works properly and if i try to use double buffering for this grid it throws an exception
.System.ComponentModel.Win32Exception: The operation completed successfully at System.Drawing.BufferedGraphicsContext.CreateCompatibleDIB(IntPtr hdc, IntPtr hpal, Int32 ulWidth, Int32 ulHeight, IntPtr& ppvBits)