Subject | Dataset ReadOnly=true, controls throw exceptions |
---|---|
Author | tickerboo2002 |
Post date | 2003-05-29T09:56:09Z |
When I display a dialog, I sometimes want the dataset to be read
only. Only one row is displayed for which I use a transaction, query
& datasource. I set the following:
tn->ReadOnly = true;
ds->AutoEdit = false;
qry->ReadOnly = true;
qry->PreventEditing = true;
but this still allows the user to enter a control and when attempting
to change the data an exception is thrown. Is there anyway to
prevent this apart from changing all the bound controls to
ReadOnly=true?
TIA
David
only. Only one row is displayed for which I use a transaction, query
& datasource. I set the following:
tn->ReadOnly = true;
ds->AutoEdit = false;
qry->ReadOnly = true;
qry->PreventEditing = true;
but this still allows the user to enter a control and when attempting
to change the data an exception is thrown. Is there anyway to
prevent this apart from changing all the bound controls to
ReadOnly=true?
TIA
David