0

Dear all .Netters,

I want my RadioButtonList can not be selected by users, so i set the Enable to be false. The problem is the font colour become gray.

so does any one of you can help me how to keep the font colour still black and can not be selected ?


Thanks and Regards,


Kusno

2
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by Kusno
0

Finnaly, i find the answer. i use checkboxlist control, because there is a bug in radiolbuttonlist control when RepeatColumn is set to 2

if form_load :
If Not IsPostBack Then
ViewState("Chk") = 2
CheckBoxList1.SelectedIndex = 2
End If

and .....

Protected Sub CheckBoxList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBoxList1.SelectedIndexChanged
CheckBoxList1.SelectedIndex = ViewState("Chk")
End Sub

It will push the selectedindex value to the viewstate value.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.