Checked List Box, Select Only One Row
-
Hey guys, I'm having an issue with the windows CheckedListBox control. I set it to only be able to select one row at a time, however it still allows multiple checked rows, just not multiple highlighted rows, anyone know of a way to be able to only check a single row? Thanks for any help, Pablo
Apparently it's not OK to start a bonfire of Microsoft products in the aisles of CompUSA even though the Linuxrulz web site says so
-
Hey guys, I'm having an issue with the windows CheckedListBox control. I set it to only be able to select one row at a time, however it still allows multiple checked rows, just not multiple highlighted rows, anyone know of a way to be able to only check a single row? Thanks for any help, Pablo
Apparently it's not OK to start a bonfire of Microsoft products in the aisles of CompUSA even though the Linuxrulz web site says so
Polymorpher wrote:
however it still allows multiple checked rows
This is the correct behaviour, since selected items are the highlighted, not the checked ones. IMHO you have to explicitely uncheck the previuos checked item(s) (the
CheckedListBox.CheckedIndices
will be handy for the purpose) to obtain the aimed result. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.