简体   繁体   中英

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.

您可以尝试将单元格验证事件与单元格值更改事件一起使用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM