Search code examples
c#vb.net.net-framework-version

DataGridView Cell Value Changing


Is there any way to get the datagridview cell value when changing?

I have a datagridview with 5 columns such as Invoice number, Invoice Date, Invoice For, Qty, Rate, Unit Price.

When i changing the qty or rate, application needs to multiplies the qty and rate and put it them into Unit Price cell.

I have already tried with CellValueChanged with CurrentCellDirtyStateChanged. But it end edit the cell value of my current editing cell's data. which cause that unable to enter further data into that cell.

Cell Value Changing Event ,c#

Please help me to solve this.


Solution

  • you can try cell validating event with cell value changed event.