binding of textbox
I have bound all the Textboxes of a Webform with a DataSet returning from a WebService.
//------ databind ----------
Page.DataBind();
private void InsClient_DataBinding(object sender, System.EventArgs e)
{TextboxName.Text = (string)DataBinder.Eval(ds.Tables[0].DefaultView[0], ColumnName)};
//----------------------------
Now I need to carry all changes I make in the Textboxes directly on the Dataset.
I have found only the following solution:
ds.Tables[0].Rows[0][ColumnName] = TextboxName.Text;
ds.AcceptChanges();
I wish to know wether there was a way to bind directly the Textbox to the Dataset.
Thanks
|