I want to put a Next and Previous button on a form and allow the user to move to either the previous or next row in the data set. This will this display the contents of the row in textboxes on the form. So far I have:
private void ShowRow(int iRow)
{
DataRow row = ds.Tables["Inventory"].Rows[iRow - 1];
txtKey.Text = ???
where 'ds' is a dataset stored to a private member on the form.
1) Is this the way to do this?
2) How to I get the data from the row into the text box?
Thanks
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people