textBox_EmpName.DataBindings.Add(new Binding("Text", dataSet1.Tables[0], "EmpName", false, DataSourceUpdateMode.OnPropertyChanged));
dataSet1.Tables[0].RowChanged += Form1_RowChanged;
void Form1_RowChanged(object sender, DataRowChangeEventArgs e)
{
if (e.Action == DataRowAction.Change)
{
adptr.Update(dataSet1.Tables[0]);
}
}
dataSet1.Tables[0].AcceptChanges();