Solved

How to determine current tables selected row

Posted on 2013-06-12
3
205 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
3 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

773 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