在datagridview文本框列中使用按钮 [英] using button in datagridview text box column
本文介绍了在datagridview文本框列中使用按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
http://i.stack.imgur.com/KIhUB.png
你可以在上面的图片中看到我希望通过空间列有一个datagridview,左边有一个按钮。
用户可以在文本框中键入值,也可以单击按钮从列表中选择值。
当用户单击按钮时,新窗体将显示在所选单元格下方。有没有办法在C#windows窗体应用程序中创建这样的东西?
http://i.stack.imgur.com/KIhUB.png
as you can see in 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?
推荐答案
是的,
您可以在网格中添加一个按钮列,并创建一个包含所需列表的表单。并选择Id并使用一个简单的静态字段传递它,该字段在表单之间共享。
Yes,
you can add a button column to your grid and make a form which contains the list you want. and select the Id and pass it with a simple static field which is shared between your forms.
这篇关于在datagridview文本框列中使用按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文