我正在设置搜索,我希望用户能够基于表中布尔值列的特定状态来决定是否要查看结果,还是忽略它并检索所有行而与布尔值无关状态. (我希望这是有道理的) 本质上,我希望用户能够将复选框设置为选中,未选中或不确定,并使我的程序在这三个状态中的任何一个上起作用.是否可以捕获不确定的检查状态?如果是这样,怎么办?据我所知,checked和indeterminate都返回一个真实的检查值,因此我不能使用null,也没有checkstate的不确定值. 帮助! (预先感谢!非常感谢您的帮助或建议!)
I''m setting up a search and I want the user to be able to decide if they want to see results based on a particular state of a boolean column in the table or ignore it and retrieve all rows regardless of the boolean state. (I hope that makes sense)Essentially I want the user to be able to set a checkbox as checked, unchecked, or indeterminate and have my program act on any three of these states. Is it possible to catch an indeterminate checkstate? If so, how? As far as I can tell, both checked and indeterminate return a true checked value, so I can''t use null, and there is no checkstate value for indeterminate.Help! (Thanks in advance! Any help or advice would be tremendously appreciated!)
推荐答案检查CheckState属性(不要双关语!). Check the CheckState property (no pun intended!).
更多推荐
作用于不确定的复选框checkstate
发布评论