2.2.6.17.84 GridControl::SetColAlignment


Description

Sets the alignment of the column.

Syntax

bool SetColAlignment( int nCol, int nAlignment, bool bExpand = false )

Parameters

nCol
[input] column index. If less than 0 it will be set to the first scrollable column's index; otherwise first scrollable column's index is 0
nAlignment
[input] AlignmentSettings
bExpand
[input] if true it will add columns when there's not enough column

Return

false if nCol is invalid or there's not enough column, otherwise true

Examples

See examples of SetCellComboList

Remark

See Also

GridControl::GetColAlignment

Header to Included

GridControl.h