Subject Re: [IBO] Prevent editing in IB_Grid?
Author Paul Hope
Luiz

Thanks for the idea - I gave it a quick try but sadly it didn't work. The
InplaceEditor still shows although you can't edit the cell.

I tried to find a place in the source where it decides to show the
InPlaceEditor but couldn't. It seems to check the read-onliness when a key
is pressed rather than when the InPlaceEditor is displayed.

Regards
Paul


""Luiz"" <cprmlao@...> wrote in message
news:003c01c24a9d$51d0e240$010aa8c0@......
> On event afterprepare you could to do:
> Query.fieldbyname('xxx').ForceControlsReadOnly:=True;
>
> This will do the column read-only in runtime.
>
> Luiz.
>
> ----- Original Message -----
> From: "Paul Hope" <paulhope@...>
> Newsgroups: egroups.ibobjects
> To: <IBObjects@yahoogroups.com>
> Sent: Friday, August 23, 2002 8:54 AM
> Subject: Re: [IBO] Prevent editing in IB_Grid?
>
>
> > Hi Frank
> >
> > >
> > > Paul Hope wrote:
> > > > Hi
> > > >
> > > > I was hoping to prevent a grid showing the editor - such that the
cell
> > > > retains its focus box and the text is not highlighted with a
flashing
> > carrat
> > > > when the cell is clicked.
> > > >
> > > > So far I have tried PreventEditing in the query and the grid and
have
> > set
> > > > the grid ListBoxStyle to true - no luck.
> > > >
> > > > Are there some settings that allow this?
> > >
> > > i may be thinking too simple, but have you tried grid.ReadOnly=True ??
> > > (and/or grid.AlwaysShowEditor=False, but this has no effect when
> > ReadOnly=true
> > > anyway...)
> >
> > I need another field to be editable - so that's no good.
> >
> > Regards
> > Paul
>
>
>
>
>
___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or
InterBase
> without the need for BDE, ODBC or any other layer.
>
___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info
papers,
> keyword-searchable FAQ, community code contributions and more !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>