简体   繁体   English

是否有更改 datagridview 单元格值的函数?

[英]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?在我扫描条形码后,数据将自动显示到 datagridview,我的问题是如何使用文本框更改 DGV 中数量的单元格值?

Anyway.. After scanning, give focus to the TextboxQty无论如何..扫描后,将焦点放在TextboxQty上

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

use the code in TextboxQty's lost focus / validating event.使用 TextboxQty 丢失焦点/验证事件中的代码。 Instead of "qty" use DGV's qty column name or column number.使用 DGV 的数量列名或列号代替“qty”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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