2012-04-14 47 views

回答

9

你可以 - 要麼設置myrbList.SelectedIndex = -1, - 或通過其.Items的foreach並設置每個項目.Selected =假

+0

好的謝謝朋友的幫助... – 2012-04-16 09:04:25

1


//代碼示例:

的foreach(在RadioButtonList1列表項LI)`
{
如果(li.Selected)
{
li.Selected = FALSE;
}
}
//或使用該(這是最好的
RadioButtonList1.SelectIndex = -1

0

使用此行代碼使用的foreach清除RadioButtonList的

RadioButtonList1.SelectedIndex=-1; 
insted的循環通過每個項
相關問題