Subject | RE: [IBO] F2 to Edit |
---|---|
Author | Alan McDonald |
Post date | 2006-10-05T06:00:43Z |
> > it appears to me that the grid was just not responding to F2yes - I've tried setting datasource autoedit to true - but then you can just
> > at all. There is nothing else on the form. no key preview.
> > keydown events etc. I've done it again on a blank project and
> > form with the grid only and F2 does nothing
>
> I took a quick look (concerned because I use it some of my
> apps). F2 does try to do something but it is prevented from
> turning edit on by the DataSource.AutoEdit=False setting.
>
> I dont notice it in my app because I have a form "edit" button
> that runs around and turns on auto-edit when the form goes
> into edit mode (and off again after commit). So I am not sure
> if it was always like this, I suspect it was.
>
> I am not certain whether it makes sense this way. I mean the
> F2 key is just calling datasource.edit and that seems logical.
> But if want F2 to be required (not allow autoedit) then you
> need autoedit turned off and then F2 wont work at all. Would
> not be hard to "fix", although it may mean yet another option
> to avoid breaking any existing apps that rely on the current
> behaviour.
>
> --
> Geoff Worboys
overtype text in the grid.
So I need the gate of F2 which I thought was the reason for the F2Edit
option. But alas - you need to manually use the Edit method of the query to
action the edit mode when autoedit is false.
I'm happy you see the issue - the workaround is fine for my purposes but
it's still something which does not work as my understanding of it expected.
Alan