I’m working on a VB.NET application where I have a DataGridView on my form. I’ve noticed that by default, the DataGridView scrolls 3 rows per scroll event. However, I want to change this behavior to scroll only 1 row per event.
I’ve tried handling the DataGridView’s scroll event and setting DataGridView.FirstDisplayedCell to achieve the desired behavior. Unfortunately, this approach doesn’t provide smooth scrolling, and the DataGridView’s behavior becomes erratic.
Could someone please guide me on how to properly adjust the scroll behavior of the DataGridView so that it scrolls 1 row per scroll event smoothly?
Thank you in advance for any assistance
Tesla96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.