Subject Re: [IBO] Re: IB_Grid
Author Jason Wharton
This way you wouldn't be able to make a change in the columns value in code.
The way I showed just makes the control read-only while allowing you to make
changes in code.

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com

-- We may not have it all together --
-- But together we have it all --


----- Original Message -----
From: <colletb@...>
To: <IBObjects@yahoogroups.com>
Sent: Friday, January 17, 2003 1:10 AM
Subject: [IBO] Re: IB_Grid


> --- In IBObjects@yahoogroups.com, "paolopf <mailto:paolopf@l..."
> <paolopf@l...> wrote:
> > Hi list,
> > is possible to prevent editing in an IB_Grid for all fields exept
> one?
>
> Setting FieldsReadOnly property of TIB_Query do the job.
>
> for example :
>
> qryVisiteur.FieldsReadOnly.Add('NOM=FALSE');
> qryVisiteur.FieldsReadOnly.Add('PRENOM=FALSE');
> qryVisiteur.FieldsReadOnly.Add('SEXE=TRUE');
>
> -->> Fields NOM and PRENOM are editable
> -->> Field SEXE is not editable.
>
> >
> > Rgds
> > Paolo Fenelli