GridControl::SetCheck

 

Description

Sets the state of the cell's check box.

Syntax

bool SetCheck( int nRow, int nCol, bool bCheck )

Parameters

nRow
[input] 0-offset row index
nCol
[input] 0-offset column index
bCheck
[input] true to check the cell's check box

Return

false if row/column index is invalid, otherwise true

Examples

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

         int nRow = m_GridCtrl.GetRowOffset();
                int nCol = m_GridCtrl.GetColOffset();
                
                m_GridCtrl.SetCheck(nRow, nCol, true);
                m_GridCtrl.SetRedraw(flexRDBuffered);
                
                bool bRet = m_GridCtrl.GetCheck(nRow, nCol);

Remark

See Also

GridControl::GetCheck

Header to Included

GridControl.h