// Databind text box this.MyTextBox.DataBind.Add("Text", MyDataSet.Tables["MyTable"], "MyColumn"); // Call FormB FormB o = new FormB(MyDataSet); o.ShowDialog(); // do other things with the new value of stuff in MyDataSet, that were set in FormBFormB
private DataSet oData; // constructor public FormB(DataSet data) { this.oData = data; } // load event (I typically databind from the Load event) private void FormB_Load(object sender, EventArgs e) { this.DataBind(); } private void DataBind() { this.MyTextBox.DataBind.Add("Text", this.oData.Tables["MyTable"], "MyColumn"); }~~Bonnie