Subject Re: [IBO] Prevent editing in IB_Grid?
Author Luiz
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