Solved

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

Posted on 2014-01-18
3
503 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 28

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
"The resource cannot be found" 1 36
Inserting LocalDB Table to SQL Server C# 3 44
CSS question 16 59
Pdf not loading 2 37
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

738 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