GridControl::GetCellData

 

Contents

Description

Gets a variant attached to the cell.

Syntax

DWORD GetCellData( int nRow, int nCol )

Parameters

nRow
[input] 0-offset row index
nCol
[input] 0-offset column index

Return

0 if row/column index is invalid, or the variant attached to the cell

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();
                for(int ii = 0; nRow <= m_GridCtrl.GetNumRows(); nRow++)
                {
                        m_GridCtrl.SetCell(nRow, nCol, ii*10);
                        m_GridCtrl.SetCellData(nRow, nCol, ii++);
                        out_int( "", m_GridCtrl.GetCellData(nRow, nCol) );
                }

Remark

See Also

GridControl::SetCellData
GridControl::GetCellDoubleData
GridControl::GetCell

header to Included

GridControl.h