2.2.6.17.12 GridControl::GetCell


Description

Gets cell text.


Gets cell properties

Syntax

string GetCell( int nRow, int nCol )


_VARIANT GetCell( CellPropertySettings settings, int nRow, int nCol )

Parameters

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


settings
[input] cell property name, one of CellPropertySettings
nRow
[input] 0-offset row index
nCol
[input] 0-offset column index

Return

empty string if row/column index is invalid, or "1", "0" if the cell has check box, or the cell's text


cell property value

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();
		
		double left = m_GridCtrl.GetCell(flexcpLeft, nRow, nCol);
		double top = m_GridCtrl.GetCell(flexcpTop, nRow, nCol);
		double width = m_GridCtrl.GetCell(flexcpWidth, nRow, nCol);
		double height = m_GridCtrl.GetCell(flexcpHeight, nRow, nCol);
		printf( "cell(%d, %d) left=%g, top=%g, width=%g, height=%g\n", nRow, nCol, left, top, width, height);

Remark

See Also

GridControl::SetCell
GridControl::GetCellData

Header to Included

GridControl.h