GridControl::SetColHighlight

 

Description

Sets whether a column can be highlighted.

Syntax

BOOL SetColHighlight( int nCol, bool bHighlightOn )

Parameters

nCol
[input] 0-offset column index
bHighlightOn
[input] true to set the column can be highlighted

Return

false if nCol is invalid, 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.CheckExpandRows( vsItems.GetSize()- 1 );
        m_GridCtrl.SetCells(vsItems, 0);
        m_GridCtrl.SetCells(vsItems, 1);
        m_GridCtrl.SetColHighlight(0,false);//after click Test button, select two columns to see the effect

Remark

See Also

header to Included

GridControl.h