c# - Clear CheckBoxList in one line -
does know how clear checkboxlist in 1 line?
i have checkboxlist holds hundreds of values , i'm trying speed code.
i.e. without iterating through each checkbox so:
foreach (listitem li in cblcategories.items) { li.selected = false; } i know isn't going make huge difference user experience - i'm curious if knows more efficient way of doing this? hoping like:
cblcategories.items.selected = none;
the clearselection method, inherits listcontrol class.
Comments
Post a Comment