NotifyCurrentCellDirty DGV usage

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
 

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

Top