karl Jonson 0 Posted November 2, 2022 Hi, If I had these options in TListView: None Not Known OptionOne OptionTwo Which is the best way to implement this logic: 'None' option cannot be selected in conjunction with another options 'Not Known' option cannot be selected in conjunction with another options TIA Share this post Link to post
Stefan Glienke 2002 Posted November 2, 2022 Use the OnChanging event to allow or disallow selecting an item depending on the existing selection Share this post Link to post
Stano 143 Posted November 2, 2022 In such cases I use RadioGroup. It is easier and the user immediately sees what he can and cannot do. The principle is the same. Share this post Link to post
PeterBelow 238 Posted November 2, 2022 14 minutes ago, Stano said: In such cases I use RadioGroup. It is easier and the user immediately sees what he can and cannot do. The principle is the same. Does only work if only one item can be selected from the group, but IO think in OPs case selecting both OptionOne and OptionTwo would be valid. Share this post Link to post
Stano 143 Posted November 2, 2022 Oh, I forgot that. So I use a separate RadioButton. And he put the buttons in groups. Share this post Link to post
Stefan Glienke 2002 Posted November 2, 2022 I would probably design it like this (enabling and disabling the Checkboxes depending on RadioButton3 Checked) 4 Share this post Link to post
Fr0sT.Brutal 900 Posted November 3, 2022 (edited) del Edited November 3, 2022 by Fr0sT.Brutal nvm Share this post Link to post