2.2.6.17.15 GridControl::GetCellDoubleData


Description

Gets a double data attached to the cell.

Syntax

double GetCellDoubleData( 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 data attached to the cell

Examples

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

	int nRow, nCol;
	double result;
	double d_str;
	string temp;
	m_GridCtrl.GetSelCell(&nRow, &nCol);
	out_int("col=",nCol);
	out_int("row=",nRow);
	temp=m_GridCtrl.GetCell(flexcpText,nRow, nCol);
	if(is_numeric(temp,true,true,false))
	{
	d_str=atof(temp);
	m_GridCtrl.SetCellData(nRow, nCol,d_str);
	result=m_GridCtrl.GetCellDoubleData(nRow, nCol);
	out_double("The double data in chosen cell is ",result);
	}
	else
	{
		out_str("Please enter a double");
	}

Remark

See Also

GridControl::GetCellData
GridControl::SetCellData

Header to Included

GridControl.h