| GridControl::SetCell  DescriptionSet one cell's text. Set data to one cell.
 Set data to one cell with display format.
 Sets cell properties
 Sets a range of cells' properties
 Syntax
bool SetCell( int nRow, int nCol, const string & str )
   
bool SetCell( int nRow, int nCol, int nVal )
   
bool SetCell( int nRow, int nCol, double dVal, string strFormat = "*" )
   
void SetCell( _VARIANT var, CellPropertySettings settings, int nRow, int nCol )
   
void SetCell( _VARIANT var, CellPropertySettings settings, int nRow1, int nCol1, int nRow2, int nCol2 )
 Parameters
    nRow[input] 0-offset row indexnCol[input] 0-offset column indexstr[input] text to be set, it can be "1"/"0" to check/uncheck if the cell has check box   
    nRow[input] 0-offset row indexnCol[input] 0-offset column indexnVal[input] data to be set   
    nRow[input] 0-offset row indexnCol[input] 0-offset column indexdVal[input] data to be setstrFormat[input] lLabTalk formatting string   
    var[input] cell property valuesettings[input] cell property name, one of CellPropertySettingsnRow[input] 0-offset row indexnCol[input] 0-offset column index   
    var[input] cell property valuesettings[input] cell property name, one of CellPropertySettingsnRow1[input] 0-offset row indexnCol1[input] 0-offset column indexnRow2[input] 0-offset row indexnCol2[input] 0-offset column index Returnfalse if nRow or nCol is invalid, otherwise true false if nRow or nCol is invalid, otherwise true
 false if nRow or nCol is invalid, otherwise true
 ExamplesSee examples of SelCell RemarkSee Also
    GridControl::GetCellGridControl::SetCellData header to IncludedGridControl.h |