Objective Grid: Base styles

Article ID: 480
Last updated: 25 Apr, 2018
Article ID: 480
Last updated: 25 Apr, 2018
Revision: 3
Views: 1703
Posted: 24 Jan, 2001
by Meltreger B.
Updated: 25 Apr, 2018
by Meltreger B.

Problem

 


What is a base style?

 

 


Cause

 


 

 


Action

 


Base styles contain default settings for a certain group of cells.

Objective Grid provides three pre-defined base styles:

  • StandardStyle  contains default settings for any cell
  • RowHeaderStyle  contains default setting for row headers
  • ColHeaderStyle  contains default settings for column headers

You can change any of the above named style objects with the ChangeStandardStyle(), ChangeRowHeaderStyle(), and ChangeColHeaderStyle() API.

Objective Grid lets you add your own base styles and apply these base styles to cells. This gives you a very powerful way to define the appearance for a group of cells.  It also lets the end-user modify the appearance of these cells through the style sheet dialog. You can check this out in the gridapp sample with the menu item Format|Styles.

Suppose you are displaying some data in a grid and you want to outline values that are lower or higher than normal. You can define that all values that are below zero should have a blue text color and all values that are higher than 100 should have a red text color. The user can change these default settings to his needs. Maybe the user prefers to have a red background color with yellow text instead of red text.

See the User's Guide, Registration and usage of base styles for information on using base styles.
 

This article was:   Helpful | Not helpful
Report an issue
Article ID: 480
Last updated: 25 Apr, 2018
Revision: 3
Views: 1703
Posted: 24 Jan, 2001 by Meltreger B.
Updated: 25 Apr, 2018 by Meltreger B.

Others in this category