GridControl::SetColValues

 

Contents

Description

Sets one column text.

Syntax

bool SetColValues( int nCol, const vector<string> & vsVals, int nRow1 = 0, bool bExpand = false )

Parameters

nCol
[input] column index, first scrollable column's index is 0
vsVals
[input] the column text
nRow1
[input] begin row index, first scrollable row's index is 0
bExpand
[input] if true it will add rows/columns when there's not enough row/column

Return

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

Examples

Example codes can be pasted to doExample() function in GridControl's examples to run

        vector<string> vsItems = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
        m_GridCtrl.SetColValues(0,vsItems,0,true);

Remark

See Also

GridControl::SetCells
GridControl::SetTableValue

header to Included

GridControl.h