SetColumnAlignments

Class: TEgFireGrid

procedure SetColumnAlignments(const AAlignments: string);

Sets the horizontal alignment of the cells of several columns at once.

AAlignments: one letter per column: L for Leading (left), C for Center, R for Trailing (right); lower case is accepted, and any other character leaves that column as it is. For example 'LLRC' aligns the first two columns left, the third right and the fourth centred.

The entries go to the columns of EffectiveColumns in collection order (the order of the columns on screen, hidden columns included), the first entry to the first column; entries beyond the last column are ignored. With no explicit Columns this changes the default columns, which are rebuilt (and lose the change) whenever the dataset’s fields change: use it on explicit columns, or again after each rebuild.

See Also

(C) 2026 Easygate, Lda