关于DataGrid中的运行时RadioButton [英] About Runtime RadioButton in DataGrid

查看:108
本文介绍了关于DataGrid中的运行时RadioButton的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在开发一个应用程序,我需要将RadioButton保留在仅一列的每一行中,但是问题在于单选按钮中,我必须保留3个选项,例如YES,NO,NOTHING.它必须在应用程序的运行时执行吗? ?
PLZ为本文提供帮助?


I am developing an application where i need to keep RadioButton in Each row of only one column,but problem is in the radion button i have to keep 3 options like YES,NO,NOTHING.It has to do on the runtime of the application??
PLZ Help me for this article???

推荐答案

嘿,您想动态添加单选按钮.对要添加单选按钮的事件做一件事,然后编写此代码

RadioButton rd1 = new RadioButton();
rd1.text ="First";
this.controls.add(rd1);

RadioButton rd2 = new RadioButton();
rd1.text =第二";
this.controls.add(rd2);

RadioButton rd3 = new RadioButton();
rd1.text ="Third";
this.controls.add(rd3);

做到这一点,并在我的电子邮件中给我答复

seoamitk@gmail.com
hey dude you want to add radio button dynamically.Do one thing on go to which event you want to add radiobuttons and write this code

RadioButton rd1=new RadioButton();
rd1.text="First";
this.controls.add(rd1);

RadioButton rd2=new RadioButton();
rd1.text="Second";
this.controls.add(rd2);

RadioButton rd3=new RadioButton();
rd1.text="Third";
this.controls.add(rd3);

DO it and give me response on my e-mail

seoamitk@gmail.com


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

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