I am still trying to figure this one out. What I want to do is update all records in a datagrid when clicking an update button. I have been able to get it to update the current row, but what do I need to do from here to get it to update all records?
Here is my latest code:
SqlConnection updConnection = new SqlConnection(Test_Utility.Properties.Settings.Default.ConnectionString);
string updSqlStmt = "UPDATE Assignment SET Active= '1', StatusType='9999', EndDt =@EndDt WHERE ID=@ID";
SqlCommand updCmd = new SqlCommand(updSqlStmt, updConnection);
updCmd.CommandType = CommandType.Text;
txtProgress.Text = "Update completed.";