如何在vb.net中的数据gridview中添加文本框控件 [英] how to add text box control in data gridview in vb.net

查看:90
本文介绍了如何在vb.net中的数据gridview中添加文本框控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我想在运行时在vb.net2008的数据gridview控件中添加文本框cotrol.怎么可能?



如何在vb.net中检查数据gridviews单元格按键事件?

请帮助我.

预先谢谢您.

hello

I want to add textbox cotrol in data gridview control in vb.net2008 at run time. How it possible?

OR

how check data gridviews cell key press event in vb.net?

pls help me.

Thank you in advance.

推荐答案

您将显示Data gridview的属性,然后选择它的属性
You show property of Data gridview then choose attribute of it


托管了MaskedTextBox的DataGridViewColumn [
How to: Host Controls in Windows Forms DataGridView Cells[^] is a good example that should help you out.

Another good example that hosts a masked control - DataGridViewColumn Hosting MaskedTextBox[^].


尝试在以下位置添加文本框网格的rowCreated事件
例如

昏暗的txtbox作为新的文本框
找到垂直列,然后添加文本框.
Try to add your textbox in rowCreated event of grid
ex.

Dim txtbox as new textbox
Find the perticular column and then add textbox.


这篇关于如何在vb.net中的数据gridview中添加文本框控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆