Updating the table: why not?

  • Thread starter Thread starter vinnie
  • Start date Start date
V

vinnie

I made simple project where it show a table (that i previously made in
MS SQL).

When i start the project and i add a row, clicking the save button all
work. But if i want to cancel the full row, the cancel button does not
perform the job, practically nothing happens. The code behind the
cancel_button click event is:

private void BtnCancel_Click(object sender, EventArgs e)
{
this.CMSDataSet1.tbl_worker.Clear();

this.tbl_workerTableAdapter.Fill(this.CMSDataSet1.tbl_worker);
}

Thanks
 
vinnie said:
I made simple project where it show a table (that i previously made in
MS SQL).

When i start the project and i add a row, clicking the save button all
work. But if i want to cancel the full row, the cancel button does not
perform the job, practically nothing happens.

It's not clear: do you want to delere a row of the DataTable?

Here's the code:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top