txtKey.DataBindings.Add("Text", ds.Tables["Inventory"], "MyColumn"]; CurrencyManager oCurrency = (CurrencyManager)this.BindingContext[ds.Tables["Inventory"]);Then, your Next/Previous buttons move the CurrencyManager position, and the txtKey textbox will automatically change:
// Next button this.oCurrency.Position++; // Previous button this.oCurrency.Position--;~~Bonnie
>private void ShowRow(int iRow) >{ > DataRow row = ds.Tables["Inventory"].Rows[iRow - 1]; > txtKey.Text = ??? > >>