Subject IB_Grid / FieldVisible
Author Alan McDonald
I have reason to reset the FieldVisible string list at runtime for some of
my grids. I allow users to show certain groups of fields in separate views
of the complete list.
To do this I do this

with IB_Query1 do begin
DisableControls;
FieldsVisible.Clear;
FieldsVisible.Add('JSITEMIND=FALSE');
FieldsVisible.Add('LINKTOJS=FALSE');
FieldsVisible.Add('LINKTOWO=FALSE');
FieldsVisible.Add('LINKTOITEM=FALSE');

etc

FieldsVisible.Add('USERUPDATE=FALSE');
FieldsVisible.Add('USERCREATE=FALSE');
IB_Query1.StretchColumn := 'ITEMID';
Refresh;
EnableControls;
end;

I can't seem to get DisableControls to work for me... I still get a lot of
flickering while the FieldsVisible stringlist is cleared and reset. Is there
another way to do this?
I've tried Visible False then True but I'd rather not get a blank panel
between these statements.
I was really hoping that DisableControls would freeze the grid in it's
current state, I could make my changes, then refresh it and Enablecontrols
but I can;t get it to work this way.

Alan