I am using a DBCtrlGrid to display several records on screen at once. The control grid has a DBCheckBox and a DBEdit on it. I am trying to control the Visible state of the DBEdit according to the Checked state of the DBCheckBox.
When a checkbox is clicked (I am using the OnClick event), the corresponding DBEdit behaves correctly, however all the other DBEdits (for the other records) change state whenever I move to another record.
I notice that the controls placed on a DBCtrlGrid actually appear with the Form as their parent in the object inspector.
Is there any way to determine which instance of the controls I am dealing with at any one time and limit the effects to just one record at a time.
Thanks for any help
RonR
When a checkbox is clicked (I am using the OnClick event), the corresponding DBEdit behaves correctly, however all the other DBEdits (for the other records) change state whenever I move to another record.
I notice that the controls placed on a DBCtrlGrid actually appear with the Form as their parent in the object inspector.
Is there any way to determine which instance of the controls I am dealing with at any one time and limit the effects to just one record at a time.
Thanks for any help
RonR