2012-03-14 2 views

ответ

0

Используйте событие DataBound, так как тогда все радио кнопки будут заполнены.

Private Sub YourRadioButtonList_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles YourRadioButtonList.DataBound 

    For Each rd As RadioButton In YourRadioButtonList.Items 

     'Or some other condition that determines the CSS Class. 
     If rd.Checked Then 

      rd.CssClass = "NewCssClass" 

     End If 

    Next 

End Sub