CGXData::StoreValueRowCol

BOOL StoreValueRowCol(ROWCOL nRow, ROWCOL nCol, LPCTSTR pszValue, GXModifyType mt, int nType = 0, CGXStyle* pValueStyle = NULL);

nRow

Specifies the row id.

nCol

Specifies the column id.

pszValue

A pointer to a zero-terminated string which should be stored into the cells-array.

mt

Modify-Type: gxOverride, gxApplyNew, gxCopy or gxRemove (see CGXStyle class).

nType

  • Specifies the type of information to be retrieved:

  • 0 specifies to store the style into the cells-array with cell contents.

  • -1 specifies to store the style into the cells-array with the base styles for rows, columns or the table.

A value greater than 0 is not supported.

pValueStyle

Lets you pass a pointer to a style object which can be used for calling StoreStyleRowCol. Passing pValueStyle is useful when you are using a derived CGXStyle class in the grid. You should allocate this object once at initialization time of your grid and free it when the grid is closed. If pValueStyle is NULL, a CGXStyle object will be used.

Return Value

Always TRUE.

Remarks

Stores a value into the cells-array.

If you only have to store the value into the cells-array, you should call this method instead of StoreStyleRowCol. StoreValueRowCol has been optimized for storing only the value.

See Also

 CGXData::StoreStyleRowCol  CGXGridCore::StoreStyleRowCol

CGXData

 Class Overview |  Class Members