Page 1 of 1

datagrid checkbox for hiliting lines

Posted: Tue May 24, 2016 6:39 pm
by rinzwind
Is it possible to let a checkbox in a column reflect the selected status of a row?
In a way to give another way to select multiple rows (instead of holding CTRL and clicking)...
I have a checkbox in a column, but the line selection is already reset when code in the mouseUp event executes.

Re: datagrid checkbox for hiliting lines

Posted: Wed May 25, 2016 9:33 am
by rinzwind
Ah setting auto hilite of the datagrid to false does wonders, but you will loose default click/ctrl/shift functionality (which the checkboxes replaces). Checkboxes are more user friendly. Would be nice if there was an option to use both options.

Re: datagrid checkbox for hiliting lines

Posted: Wed May 25, 2016 2:20 pm
by Mikey
What I have done, which I think is even easier, is added an extra text column, called "X" or "Selected", or whatever you like. Then, when the user selects the row, I toggle the value of that cell to either "X" or empty. I like the look better than that of a checkbox.