Subject RE: [IBO] IB_Grid settings
Author Alan McDonald
> At 11:17 PM 25/10/2005 +1000, you wrote:
> > >
> > > I have a requestlive query attached to an IB_Grid with the
> > > datasource set to
> > > autoedit.
> > > What settings are required to make the grid NOT automatically
> allow edits,
> > > but to respond to the navigate ngF2Edit option key?
> > > I'm trying to safeguard accidental edits but I don't want to
> chase myself
> > > around in circles making the edit via menu option etc.
> > > regards
> > > Alan McDonald
> > >
> > >
> >
> >When gnF2ToggleEditor is set True.
> >When any editing key is pressed (e.g. alpha keys in an alpha
> field) in the
> >grid, the key presses are appended automatically onto the end of
> the field
> >value.
> >(nothing in the help file warned me about this)
> >Anyway - I need a way for key presses to not edit at all... and
> F2 to turn
> >the dataset into dssedit.
> >setting datasource to autoedit.False does not give F2 this ability - it's
> >never editable..
> >hmmm, there must be a way...
>
> I don't have time to write a demo but, since you're playing with
> this stuff
> anyway, set AutoEdit and AutoInsert to False in the ib_datasource
> and then
> fiddle with the gn* settings until you get it doing what you want.
>
> Helen

a clean little example using employee database.
IB_connection, IB_Query1, IB_DataSource1, IB_Grid1

Set datasource AutoEdit to False...
No matter what I do with settings of the grid or the query, I cannot get F2
changing to dssedit.

This must be by design I guess. Just thought it would behave like I
expected.
F2 or using any valid keyboard edit key will start dssedit (when set to
autoedit)

Alan