<< Return to Main Index

< Return to Class Index

CGXDBEGrid::OnLoadCellStyle

virtual BOOL OnLoadCellStyle(ROWCOL nRow, ROWCOL nCol, CGXStyle& style, LPCTSTR pszExistingValue);?

nRow

Specifies the row id.

nCol

Specifies the column id.

style

A reference to the style-object where you should store the cell formatting.

pszExistingValue

A pointer to a string which contains the changed value for the cell. NULL if cell has not been changed.

Return Value

Nonzero if successful; otherwise 0.

Remarks

Called to load the value from data source or apply additional formatting at runtime. This function calls CGXDBEngine::GetValue to get appropriate value from the data source.

When you override this method, be careful that you don't forget to call this base class version of the method.

See Also

CGXDBEngine::GetValue

CGXDBEGrid 

Class Overview | Class Members