?
Solved

How to determine current tables selected row

Posted on 2013-06-12
3
Medium Priority
?
221 Views
Last Modified: 2013-06-27
I have a dataset with a single table.  I am binding textbox's to the datatable.  This is a windows application.  My question is I want to use a next and previous button to go through the dataset.   I knew how to do this with recordsets but how can this be accomplished with ease with dataset tables.

thanks
0
Comment
Question by:mgmhicks
[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 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 2000 total points
ID: 39241644
You can use a BindingNavigator control. It provides all the buttons, you simply react to them.

If you want a little more control and create your own buttons, you use a CurrencyManager object. The sample code in the online help is easy to understand.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39242320
On a more basic level, you can keep the current row index and increment and decrement it on next and previous button clicks.
0
 

Author Closing Comment

by:mgmhicks
ID: 39281814
Thanks using the bindingSource was the way to go.
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

777 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