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

Posted on 2014-01-18
Medium Priority
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.

The navigation buttons must to move between the datagrid lines.

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

Thanks in advance!
Question by:Eduardo Fuerte
LVL 23

Accepted Solution

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

Assisted Solution

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

Author Closing Comment

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

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
If you are looking for an automated solution for backup single or multiple Office 365 user mailboxes to Outlook data file, then you can use Kernel Office 365 Backup & Restore tool. Go through the video to check out the steps to backup single or mult…

588 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