DataGridView Selected Row

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

Hi, I have wish to have a previous & next button on a form that will move
the selected row depending on the button pressed. I can get it to move the
selected cell but the displayed highlighted row remains the same.

Thanks

Paul
 
Hi, I have wish to have a previous & next button on a form that will move
the selected row depending on the button pressed. I can get it to move the
selected cell but the displayed highlighted row remains the same.

Thanks

Paul

Hi Paul,

If you specify the CurrentCell, the CurrentRow should move with it. Another way is by using a BindingSource and adjust the Position property of the BindingSource.
 
Hi, I was using a BindingSource and the position options works perfectly

Thanks for your help

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top