Gets a double data attached to the cell.
double GetCellDoubleData( int nRow, int nCol )
0 if row/column index is invalid, or the data attached to the cell
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"); }
GridControl.h