problem in updating in dataset
hi please help me for
i have created a win form with just one textbox and a button.
i had used the sqldataadaptor for binding the data with textbox with the following code
On form Load event:
textBox1.DataBindings.Add("Text",dataSet11,"one.na me");
Where : "one:table name" and "name:field name"("sno" is pk in table)
it display the data correctly but when i want to update the value using following code it won't update it
On button click event:
dataSet11.GetChanges();
sqlDataAdapter1.Update(dataSet11);
dataSet11.AcceptChanges();
now if i take datagrid in the above system it updates the database
Is there any difference in setDataBinding of dataGrid or dataBinding of controls?
please help me with proper code
thanks 'advance'
|