Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 524
  • Last Modified:

How to make navigation buttons move datagrid lines and select a line by button?

Hi Experts

I'm migrating an existing and running app to Windows Forms C# and struggling on how to replicate this functionality by using datagrid.

01
The navigation buttons must to move between the datagrid lines.

Plus I need to permit a line selection - by button too.

Thanks in advance!
0
Eduardo Fuerte
Asked:
Eduardo Fuerte
2 Solutions
 
wdosanjosCommented:
DataGrid.CurrentRowIndex gives you the current row selected.  Then you can use DataGrid.Select() to select the desired row.
0
 
ArkCommented:
Or you can use BindingNavigator - it already contains navigation buttons
0
 
Eduardo FuerteAuthor Commented:
Now it's up to me to apply!
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now