I have a program that uses a dbgrid to display a list of records, and the doubleclick event opens another form to edit the data. If certain conditions exists I call the line
dsItem.DataSet.DisableControls;
to prevent editing the record. Then in the formclose event I call;
if dsItem.DataSet.ControlsDisabled then
dsItem.DataSet.EnableControls;
if dsItem.DataSet.ControlsDisabled then
dsItem.DataSet.EnableControls;
when I trace through the execution the second enableControls is called. Any idea where the problem is?
dsItem.DataSet.DisableControls;
to prevent editing the record. Then in the formclose event I call;
if dsItem.DataSet.ControlsDisabled then
dsItem.DataSet.EnableControls;
if dsItem.DataSet.ControlsDisabled then
dsItem.DataSet.EnableControls;
when I trace through the execution the second enableControls is called. Any idea where the problem is?