在VB.NET中将datagridview的值添加到文本框中 [英] Add value from datagridview to textbox in VB.NET
本文介绍了在VB.NET中将datagridview的值添加到文本框中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我从gridview单元格输入时,该值应该添加到文本框中
我尝试过:
i在keypress keyup keydown中尝试过。但它没有解雇..
请帮帮我
解决方案
也快速谷歌给出;
https://social.msdn.microsoft.com/Forums/windows/en-US/db486d50-48f3-405d-bc7a-ad3720d4dd57/datagridview-how-到捕获-A-细胞-按键事件?论坛= winformsdatacontrols
textbox1.text = datagridview1.rows(e.rowindex).cells(0)。价值< pre>
试试这个
When i type from gridview cell, the value should add in to the textbox
What I have tried:
i tried in keypress keyup keydown. but its not firing..
Please help me
解决方案
Also a quick Google gives;
https://social.msdn.microsoft.com/Forums/windows/en-US/db486d50-48f3-405d-bc7a-ad3720d4dd57/datagridview-how-to-capture-a-cells-keypress-event?forum=winformsdatacontrols
textbox1.text=datagridview1.rows(e.rowindex).cells(0).value<pre>
try this
这篇关于在VB.NET中将datagridview的值添加到文本框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文