Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

How to determine current tables selected row

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
mgmhicks
Asked:
mgmhicks
1 Solution
 
Jacques Bourgeois (James Burger)PresidentCommented:
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
 
CodeCruiserCommented:
On a more basic level, you can keep the current row index and increment and decrement it on next and previous button clicks.
0
 
mgmhicksAuthor Commented:
Thanks using the bindingSource was the way to go.
0
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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now