Subject RE: [IBO] IB_Grid / FieldVisible
Author Alan McDonald
Thanks Lucas,
I use DisableControls a lot with BDE, IBX - it actually disengages the
control from responding to any property reset until EnablControls is called,
but I'll give your suggestion a go.
As for one line, it still easier to read in code if it's on separate lines I
think.
....coding...
yep - much better - thanks
Alan
PS - is GridLinks a recent thing? I don;t seem to have refernce to it
anywhere (except help file) the code help doesn't show it, nor does the
Object Inspector...



-----Original Message-----
From: Lucas Franzen [mailto:luc@...]
Sent: Tuesday, 25 February 2003 9:17 AM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] IB_Grid / FieldVisible



Alan,

I think that DisableControls is appropriate when moving through a
dataset without refreshing the grid by every move.

Maybe you can get away better with setting the DataSet property of the
IB_Grid to NIL, do your changes, then reassiging the DataSet property
(but I haven't tested that).

By the way:
Why don't you just use the GridLinks property, just adding the fields
that ARE visible, so you don't have to fiddle around with
FieldsVisible=FALSE.
And by using the CommaText property of the underlying TIBOStringList you
can easily assign (and save) it in one line of code.


Luc.


___________________________________________________________________________
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/