CurrentCellDirtyStateChanged event(Need help)

  • Thread starter Thread starter kitemad69
  • Start date Start date
K

kitemad69

private void
getDebOutInvBalDataGridView_CurrentCellDirtyStateChanged(object
sender, EventArgs e)
{

getDebOutInvBalDataGridView.CommitEdit(DataGridViewDataErrorContexts.Commit);

}

I am using this event because i have checkboxes in my datagridview.
This works well for the checkboxes but the problem is when i want to
insert a value into one of the cells using my keyboard eg. 10. The
event commits the 1 then commits the 0 therefore leaving the value in
the cell = to 0. It sets the cell value to 1 then to 0 as you type in
ten.How can i make this event only operate for my textbox column
 

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