daData.SelectCommand = new SqlCommand("SELECT * from DataDetails", cs); dsData.Clear(); daData.Fill(dsData); DataBS.DataSource = dsData.Tables[0];
daData.Update(dsData);
Update requires a valid UpdateCommand when passed DataRow collection with modified rows.
daData.UpdateCommand = new SqlCommandBuilder( daData).GetUpdateCommand();
daData.Update(dsData); daData.AcceptChanges();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)