this.oGrid.DataSource = MyDataSet; this.oGrid.DataMember = "MyTable"; //Then you have to use the following syntax with TextBoxes: this.txtLastName.DataBindings.Add("Text", MyDataSet, "MyTable.LastName") // And your CurrencyManager/BindingContext would be: CurrencyManager cm = (CurrencyManager)this.BindingContext[MyDataSet, "MyTable"];But if you bound your grid with:
this.oGrid.DataSource = MyDataSet.Tables["MyTable"]; //Then you use this syntax for TextBoxes: this.txtLastName.DataBindings.Add("Text", MyDataSet.Tables["MyTable"], "LastName") // And your CurrencyManager/BindingContext would be: CurrencyManager cm = (CurrencyManager)this.BindingContext[MyDataSet.Tables["MyTable"]];~~Bonnie