Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checkbox DataBindings - Checked vs CheckState

Can anyone tell me the pros and cons of using the checkboxes checked property vs the CheckState property for databinding?

Thanks.

like image 823
Marshall Avatar asked Jan 18 '10 15:01

Marshall


1 Answers

Checked can only be true or false (presenting a checkmark or none), while CheckState can also be undetermined, meaning a partially greyed checkmark representing neither true nor false.

Nb. When CheckState is indeterminate, Checked is true. Maybe irrelevant for your situation, but it might still be important.

like image 147
Webleeuw Avatar answered Nov 03 '22 12:11

Webleeuw