I've seen quite a lot of discussion regarding checkboxes in grids, but haven't really found the answer to my problem. I have a grid with record source set to look at a cursor created using SQLEXEC (pointing to SQL database). Normally that's fine, except that for my new grid I want to include a column of checkboxes to allow users to select multiple records.
I have managed stick some code into my column class so that the desired column contains checkboxes (it takes out the textbox too). However, these checkboxes are all stuck on the value I set them up with on creation (either all on or all off). Seems the problem is related to the fact that because the grid is bound to a recordsource, my checkboxes are kind of stuck? Is there a way to have this one column 'unbound' (and so free for users to click) whilst the rest of the columns are bound as normal?
I've tried setting
but that doesn't work. I've also tried copying the data into an array, then adding a further (logical) column, but that whole process seems pretty long-winded, as I would then have to copy the array elements back into a new cursor. Is there a better way?
I have managed stick some code into my column class so that the desired column contains checkboxes (it takes out the textbox too). However, these checkboxes are all stuck on the value I set them up with on creation (either all on or all off). Seems the problem is related to the fact that because the grid is bound to a recordsource, my checkboxes are kind of stuck? Is there a way to have this one column 'unbound' (and so free for users to click) whilst the rest of the columns are bound as normal?
I've tried setting
Code:
mycol.controlsource = ''