开发者

Creating checkbox control with two or more checkbox button

I am having a requirement to create a page which contains dynamic check box controls. I am handling this by adding controls to Placeholder in page_init event.

Now, i have to change the controls to render in this way

Creating checkbox control with two or more checkbox button

One option contains 3 checkboxes and first 2 checkboxes are disabled and gives a kind of开发者_Go百科 suggestion to the user to select the 3rd checkbox

How can i achieve this kind of requirement?


Use repeater control: it's good when is a need to dynamically create group of same controls.


I'm not sure what you're having a problem with exactly, but to disable a CheckBox you just have to set the Enabled property to false.


You can use a GridView with three checkbox columns:

http://www.ezzylearning.com/tutorial.aspx?tid=5187857

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜