简体   繁体   中英

is theres a function to change the datagridview cell values?

在此处输入图片说明

after i scan a barcode the data will automaticaly display to datagridview, and my problem is how to change the cell value on quantity in DGV using textbox?

Anyway.. After scanning, give focus to the TextboxQty

DGV.Item("qty", DGV.CurrentRow.Index).Value = TextboxQty.Text

use the code in TextboxQty's lost focus / validating event. Instead of "qty" use DGV's qty column name or column number.

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