Subject | RE: [IBO] Re: Prevent grid from getting into "edit" mode |
---|---|
Author | Jason Wharton |
Post date | 2004-07-23T20:39:09Z |
I believe you are wrong. If the field is ReadOnly it may allow the caret but
it should not go into edit mode. The reason the caret would appear is you
may want to copy and paste from it. There is a way you can override an event
so that it won't allow this. It is a TCustomGrid feature which my grid
inherits from.
Jason Wharton
-----Original Message-----
From: Mihai Chezan [mailto:gsmcq@...]
Sent: Thursday, July 22, 2004 4:01 PM
To: IBObjects@yahoogroups.com
Subject: [IBO] Re: Prevent grid from getting into "edit" mode
--- In IBObjects@yahoogroups.com, "Jason Wharton" <jwharton@i...>
wrote:
cell or press enter the caret will appear (the cell will enter into
edit mode). You can't edit it but the caret will apear. What Daniel
asked was a way for this to not happen:
"The user can still press Return (or click into the cell) and get
into edit mode, with no icon, but an binking cursor and an empty
field."
And because he used a calculated field I believe that readonly or
noedit would have no effect as a calculated field is by its nature
readonly.
Of course I could be wrong.
it should not go into edit mode. The reason the caret would appear is you
may want to copy and paste from it. There is a way you can override an event
so that it won't allow this. It is a TCustomGrid feature which my grid
inherits from.
Jason Wharton
-----Original Message-----
From: Mihai Chezan [mailto:gsmcq@...]
Sent: Thursday, July 22, 2004 4:01 PM
To: IBObjects@yahoogroups.com
Subject: [IBO] Re: Prevent grid from getting into "edit" mode
--- In IBObjects@yahoogroups.com, "Jason Wharton" <jwharton@i...>
wrote:
> Just set the field itself to ReadOnly or NOEDIT in theFieldsReadOnly
> property of the dataset.I'm sory to disagree but if you do that then when you double click the
>
> Jason Wharton
cell or press enter the caret will appear (the cell will enter into
edit mode). You can't edit it but the caret will apear. What Daniel
asked was a way for this to not happen:
"The user can still press Return (or click into the cell) and get
into edit mode, with no icon, but an binking cursor and an empty
field."
And because he used a calculated field I believe that readonly or
noedit would have no effect as a calculated field is by its nature
readonly.
Of course I could be wrong.