Solved

How to determine current tables selected row

Posted on 2013-06-12
3
216 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 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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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 …
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…

732 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