SMART datagrid v.1 > Concepts

Back  Forward

Concepts.Grid Style Overview

SMART datagrid Grid View or Tree View consists of several regions which contain the cells of the same types. Basically, the cells contained in the same region will be drawn in the same style. GridStyles provide the style set for these regions, and the cells contained in the region will be usually drawn through these style properties. 

Although common style properties used in each region have been defined in Grid Styles, it does not mean the cells of each region use all the properties. In the table below, it summarizes style properties of Grid Styles. Please refer to Property Help for more details on each property. 

Table-1
PropertyTypeExplanation
backgroundFillBackground color of cell
colorFillText color
inactiveBackgroundFillBackground of cell of deleted row
inactiveColorFillText color of deleted row
selectedBackgroundFillBackground color of selected cell
selectedColorFillText color of selected cell
hoveredBackgroundFillBackground of hovered cell
hoveredColorFillText color of hovered cell
borderTopStrokeTop border of cell
borderLeftStrokeLeft border of cell
borderBottomStrokeBottom border of cell
borderRightStrokeRight border of cell
borderRadiusIntegerRadius of border
textFormatStringText display format
datetimeFormatStringDate display format
numberFormatStringNumber display format
booleanFormatStringBoolean display format
paddingLeftIntegerLeft padding of cell
paddingRightIntegerRight padding of cell
paddingTopIntegerTop padding of cell
paddingBottomIntegerBottom padding of cell
fontNameStringFont name
fontSizeIntegerFont size
fontBoldBooleanText bold
fontItalicBooleanText italic
fontLineThroughBooleanText strikethrough
fontUnderlineBooleanText underline
iconAlignmentAlignmentIcon alignment mode
iconIndexIntegerIcon index
iconLocationIconLocationIcon location
iconOffsetIntegerDistance between the icon and cell border
iconPaddingIntegerDistance between the icon and text
iconAlphaIntegerTransparency of the icon or image (0 ~ 1)
prefixStringString added in front of the text
suffixStringString added behind the text
textAlignmentAlignmentHorizontal alignment state of the text
lineAlignmentAlignmentVertical alignment state of the text
textWrapTextWrapModeThe display mode when exceeding cell area
textShadowStringShadow color of text
shapeNameStringName of shape
shapeColorFillBackground color of shape
shapeColorsFillBackground color palette of shape
shapeInactiveColorFillBackground color of inactive shape
shapeSelectedColorFillBackground color of selected shape
shapeHoveredColorFillBackground color of hovered shape
shapeBorderStrokeBorder of shape
shapeInactiveBorderFillBorder of inactive shape
shapeSelectedBorderFillBorder of selected shape
shapeHoveredBorderFillBorder of hovered shape
shapeLocationIconLocationDisplay location of shape
shapeAlignmentAlignmentAlignment of shape
shapeOffsetIntegerDistance between the shape and cell border
shapePaddingIntegerDistance between the shape and text
shapeSizeDimensionShape size
shapeRotateNumberRotational state of shape (0 ~ 360)
rendererStringRenderer ID
Note
See Also
GridStyles
Examples
Column Styles
Column Dynamic Styles