Solved

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

Posted on 2014-01-18
3
494 Views
Last Modified: 2014-01-21
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
Comment
Question by:Eduardo Fuerte
3 Comments
 
LVL 23

Accepted Solution

by:
wdosanjos earned 250 total points
ID: 39791685
DataGrid.CurrentRowIndex gives you the current row selected.  Then you can use DataGrid.Select() to select the desired row.
0
 
LVL 27

Assisted Solution

by:Ark
Ark earned 250 total points
ID: 39791798
Or you can use BindingNavigator - it already contains navigation buttons
0
 

Author Closing Comment

by:Eduardo Fuerte
ID: 39796665
Now it's up to me to apply!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
A short film showing how OnPage and Connectwise integration works.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now