Datagrivd查看按钮Coloumn [英] Datagrivd view button Coloumn
本文介绍了Datagrivd查看按钮Coloumn的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hai,
我想在Datagridview中添加一个datagridviewbutton Coloumn。
最初按钮默认按钮文本就在那里。
一旦我点击它应该切换到另一个文本的任何行中的按钮。
对于Eg默认按钮文本是是。
一旦我点击按钮应该更改为NO。
给我示例代码...
谢谢提前,
问候,
K.Priya。
解决方案
< pre lang =c#> button1.Text = button1.Text == 是? 否: 是;
HI,
请检查以下链接:
更新文本datagridview中的按钮
我在datagridview中添加了更新按钮,当在c#中点击按钮时如何更改文本?
谢谢
Hai,
I want to add a datagridviewbutton Coloumn in Datagridview.
Initally button default button text will be there.
Once i click the button in any of the row it should toggle to another text.
For Eg Default button text is Yes.
Once i click the button it should be changed as NO.
Get me sample Code...
Thanks in advance,
Regards,
K.Priya.
解决方案
button1.Text = button1.Text == "Yes" ? "No" : "Yes";
HI,
Check the following links:
Updating text of a button in a datagridview
i have added update button inside datagridview how to change text on it when button is clicked in c#?
Thanks
这篇关于Datagrivd查看按钮Coloumn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文