Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check box selection not recording table

Status
Not open for further replies.

Saturn57

Programmer
Aug 30, 2007
275
CA
Can anyone help me. I have a table with a true/false selection connected to a form as a check box. When I check the box it is not updating my table. Any suggestions?
 
How are you binding your data to the checkbox? If you're using a bindingsource try calling EndEdit(). This applies any pending changes to the underlying datasource.
 
Here is the way everything is saved:
private void quoteCalcHeaderBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
bindingNavigatorAddNewItem1_Click(null, null);
this.Validate();
this.quoteCalcHeaderBindingSource.EndEdit();
this.quoteCalcHeaderTableAdapter.Update(this.estimatorDataSet.QuoteCalcHeader);
this.Validate();
this.quoteCalcBodyBindingSource.EndEdit();
this.quoteCalcBodyTableAdapter.Update(this.estimatorDataSet.QuoteCalcBody);
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top