NotifyCurrentCellDirty DGV usage

  • Thread starter Thread starter Berryl Hesh
  • Start date Start date
B

Berryl Hesh

I am trying to figure out how to handle NotifyCurrentCellDirty.

I have a DataGridView that is composed of several numeric up down data entry
columns that I found on Microsoft's site (
DataGridViewNumericUpDownCell, DataGridViewNumericUpDownColumn, &
DataGridViewNumericUpDownEditingControl). The DGV is itself part of a larger
form.

The DataGridViewNumericUpDownEditingControl handles both OnKeyPress and
OnValueChanged, and calls dataGridView.NotifyCurrentCellDirty(true) if the
cell is dirty. I can see the events being called appropriately in the
debugger so I know that part is wired up correctly.

I thought the EditingControlShowing event might be what I need at the
dataGridView level to handle this, but it only gets called on the first
entry into the cell, and not as changes are made to it. What must I do to
handle the dirty changes?

Thank You,
Berryl
 
Back
Top