datagridview文本框列包含按钮 [英] datagridview text box column containing button

查看:111
本文介绍了datagridview文本框列包含按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于上面的图片我想要一个datagridview空间列,在左边有一个按钮。
用户既可以在文本框中键入值,也可以单击按钮从列表中选择值。
当用户单击按钮时,新窗体出现在所选单元格的下方。
有没有办法在C#窗体应用程序中创建任何这样的东西?

regarding to above picture i want to have a datagridview by spacial column which have a button at left side. Users can both type values in the text box or click the button to select value from a list. when users click the button a new form appears below the selected cell. is there any way to create any thing like this in C# windows form application?

推荐答案

对于数据网格视图控件,您需要创建自己的用户控件,其中包含按钮和文本框
下一个链接显示一些示例:单个DataGridView单元格中的多个控件

For Data Grid View control, you need to create your own user control which contains button and text box Next link show some example: Multiple controls in a single DataGridView cell

这篇关于datagridview文本框列包含按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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