Datagridview中的按钮 [英] Button in Datagridview

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

问题描述

我有一个带有3个collumns的datagridview以及数据库中每个collumns的值。我想在collumn 3中是按钮形状,按钮的文本来自数据库。请帮忙告诉我你是否可以解决这个问题。抱歉我的英语不好。谢谢。

i have a datagridview with 3 collumns and the value of each collumns from a database. i want in collumn 3 is in button shape with the text of button is from database. please help and tell me if you can solve this problem. Sorry for my bad in english language. Thanks.

推荐答案

使用 DataGridViewButton [ ^ ]栏。

这个有一个Text属性,您可以在其中设置文本。
Make use of the DataGridViewButton[^] column.
This has a Text property where you can set the text.


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

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