Hi,
I have boolean fields set up as SmallInt with 1=true, and 0=false.
I've set the columns as follows:
col.Alignment := TAlignment.taCenter;
col.CheckTrue := '1';
col.CheckFalse := '0';
col.CheckBoxField := TRUE;
Mostly they appear okay - i.e. centre aligned checkboxes, but sometimes I see the checkbox with a caption of '1' or '0', as shown:
I can't figure out under what circumstances this happens? I need to make it stop.
Thanks,
Stuart
Update:
It seems that the 1's & 0's appear after I refresh the underlying dataset, as follows:
DBAdvGrid1.Datasource := nil;
try
Table.Close;
Table.Open;
finally
DBAdvGrid1.DataSource := ds_SerachResults;
end;
(I have to disconnect and re-connect the datasource because if the grid's in PageMode then the data disappears otherwise... no idea why).
Look forward to a response,
Stuart
I have retested this here, both with PageMode = false and PageMode = true but so far, I have been unable to see this issue. Can you reproduce this by changing settings of any of our demo apps and if so, can you please provide detailed steps?