Is there a way to test if a grid is in readonly=true status?
I have the default as readonly=true but want to use a button to change to readonly=false when I want to make changes.
I want to toggle back to readonly=true after editing.
Suggestions?
Toggle grid readonly
Moderator: Neosoft Support
- BRobinsonS
- Posts: 355
- Joined: Sun Sep 25, 2005 9:00 pm
- Location: Ontario, Canada
- Contact:
Re: Toggle grid readonly
Would it be feasible to have two grids in the same place (one hidden, one visible) and simply toggle between them with a button as needed?
David Payer
Des Moines, Iowa
USA
Des Moines, Iowa
USA
- BRobinsonS
- Posts: 355
- Joined: Sun Sep 25, 2005 9:00 pm
- Location: Ontario, Canada
- Contact:
Re: Toggle grid readonly
Hoping to have one button to use for Edit Off (default) or Edit On?
-
- NeoSoft Team
- Posts: 5628
- Joined: Thu Mar 31, 2005 10:48 pm
- Location: Oregon, USA
- Contact:
Re: Toggle grid readonly
What about?
Turn on Read-Only:
dbpSetGridProperties "MyDB" "Table" "ReadOnly=Yes"
Turn off Read-Only:
dbpSetGridProperties "MyDB" "Table" "ReadOnly=No"
Turn on Read-Only:
dbpSetGridProperties "MyDB" "Table" "ReadOnly=Yes"
Turn off Read-Only:
dbpSetGridProperties "MyDB" "Table" "ReadOnly=No"
NeoSoft Support