How to change the row position of virtual mode DataGridView?
I am using Windows Forms.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Marcus’s answer is correct, but you may also need to set the DataGridView’s current cell property…
I believe this will scroll the grid. Also, to be absolutely safe, you may want to add this before the other line of code…
This will ensure that if the row you want is already the active row but just scrolled out of view, it will scroll it back into view.