I'm using a stringgrid with a column defined as a checkbox (by setting ButtonStyle=cbsCheckboxColumn, ValueChecked and ValueUnchecked are default i.e. 1 and 0; and finally option GoEditing is true so that user can toggle each checkbox-cell).
In the application I sometimes need to allow multiple rows to be selected (by checking checkbox) and in other cases I need to request user to only select one row. In the latter case when user clicks on one rows checkbox all other rows should be set to unchecked. Is there an elegant way to accomplish this? Or should the functionality be programmed "manually"?
Kind regards,
Michael