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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -