2012-04-14 4 views

답변

9

당신은 수 - 중 설정 myrbList.SelectedIndex = -1, - 또는 .Items을 통해 foreach는 각 항목을 설정 .Selected = 거짓

+0

감사합니다. 친구에게 도움을 요청합니다 ... –

1


// 코드 예 :

의 foreach (RadioButtonList1에 리튬을 ListItem)`
{
경우 (li.Selected)
{
li.Selected = 거짓;
}
}
// 또는 사용이 (이것은 최고의
RadioButtonList1.SelectIndex = -1 사용이 코드 줄은

RadioButtonList1.SelectedIndex=-1; 
RadioButtonList을 취소 foreach 문을 사용하여 각 항목을 통해 루프를 insted
0

관련 문제