Force repainting column header in data grid. Fixes issue #2405.

This commit is contained in:
Ansgar Becker
2011-05-07 04:55:00 +00:00
parent ccb002b6c7
commit e070c539ce

View File

@@ -3839,6 +3839,9 @@ var
col.Alignment := taLeftJustify;
if DataGridResult.DataType(idx).Category in [dtcInteger, dtcReal] then
col.Alignment := taRightJustify;
// Force repaint, for Wine users
vt.Header.Invalidate(col);
end;
begin