2.2.6.17.74 GridControl::SetCell
Description
Set 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 index
- nCol
- [input] 0-offset column index
- str
- [input] text to be set, it can be "1"/"0" to check/uncheck if the cell has check box
- nRow
- [input] 0-offset row index
- nCol
- [input] 0-offset column index
- nVal
- [input] data to be set
- nRow
- [input] 0-offset row index
- nCol
- [input] 0-offset column index
- dVal
- [input] data to be set
- strFormat
- [input] lLabTalk formatting string
- var
- [input] cell property value
- settings
- [input] cell property name, one of CellPropertySettings
- nRow
- [input] 0-offset row index
- nCol
- [input] 0-offset column index
- var
- [input] cell property value
- settings
- [input] cell property name, one of CellPropertySettings
- nRow1
- [input] 0-offset row index
- nCol1
- [input] 0-offset column index
- nRow2
- [input] 0-offset row index
- nCol2
- [input] 0-offset column index
Return
false 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
Examples
See examples of SelCell
Remark
See Also
- GridControl::GetCell
- GridControl::SetCellData
Header to Included
GridControl.h
|