CGXGridCore::CreateStyle

virtual CGXStyle* CreateStyle( );

Return Value

Returns a pointer to style-object created on the heap.

Remarks

The grid-component calls CreateStyle from LookupStyleRowCol whenever it needs a new style-object.

If you want to use derived styles in the grid, you have to override CreateStyle and construct an instance of your derived style-class. All controls will get this style-object passed, and therefore, they can use the extended attributes. Please take a look at the base-class version for some performance tricks before you start overriding this method.

CGXGridCore

 Class Overview |  Class Members