在运行时将值分配给表行中的复选框 [英] Assign values to checkboxes from table rows at runtime
本文介绍了在运行时将值分配给表行中的复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨亲爱的
我有桌子包含我显示的人的名字在网格上,但记录数量可能会不时变化但不会超过10.
所以我有10个复选框,我想从数据库中读取代码,并为每个复选框分配AParticular列行值。
我尝试使用以下代码但没有工作
我尝试过:
dim chk as checkbox
对于AirPuriUnitList中的每个项目
chk.items.Add(_UnitValue)
下一步
解决方案
这可能会有所帮助
复选框 - vb.net动态创建复选框 - Stack Overflow [ ^ ]
Hi Dear
I am Having Table contain Names of People I displayed That on grid,But the Number of records may vary every now and then but will not exceed to 10.
So i am having 10 checkboxes i want to read the code from database and Assign AParticular columns row values to each checkbox.
I tried using following code but didnt worked
What I have tried:
dim chk as checkbox For Each item In AirPuriUnitList chk.items.Add(_UnitValue) Next
解决方案
This might help
checkbox - vb.net dynamicly create checkboxes - Stack Overflow[^]
这篇关于在运行时将值分配给表行中的复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文