• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • 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

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

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