>Hi everybody,
>
>I'm wondering if there is a simple solution of using just one control and yet controlling checkbox enabled status in a grid.
>
>In the first column of the grid I have a combobox. Depending on the selected value, I want to adjust checkboxes in my grid to be enabled /disabled for this record. However, when I set them in the combo's valid event, it seems like all checkboxes get re-set, not the current row only.
>
>Thanks a lot in advance for ideas.
(1) add a field (logical) to the rowsource of the grid
(2) the field contains whether the checkbox should be readonly or not
(3) you'll need two checkboxes, one readonly the other not
(4) in the combobox.valid update the field of (1)
(5) the checkbox column should have a DynamicCurrentControl based on the value of the field in (1)
You better add a DynamicBackColor showing whether the checkbox is enabled
Gregory