in CellClick event of a grid i have code that changes values in the cds
for example:
cds.Edit;
if cds.FieldByName('val').AsInteger = 0 then
cds.FieldByName('val').AsInteger := 4
else
cds.FieldByName('val').AsInteger := 0;
cds.Post;
the result is an image displayed/not displayed accordingly
this is working perfect
the problem is that i have a nxPageControl (the grid is NOT inside the nxPageControl itself)
that flickers a bit (tabs and captions) when this happens
i added nxPC.DoubleBuffered := TRUE;
it stopped flickering but then the attached happened
when i switched between the pages (manually)
each 2-3 switches, the pagecontrol was painted ok
until again i switched between pages and so on
long time ago i had a similar problem
of the flickering X button of the pagecontrol and u fixed this flickering
without me needing to DoubleBuffer it.
mayb u can do the same here?
thanks












