SMART datagrid v.1 > Examples

Back  Forward

Row Dynamic Styles  Example

You can use GridBody.rowDynamicStyles to specify the style of the cells depending on the value of column cells belonging to the corresponding row, the row number or the state. 

The row dynamic style is applied before the column dynamic style specified through DataColumn.columnDynamicStyles. Also, you can specify ignoreRowDynamicStyles property as true to ignore rowDynamicStyles of the corresponding column. 

 

Grid - 1
rows

Please refer to GridBody.rowDynamicStyles page about the details on the variables which can be used in Expression of dynamic style. 

View Source JSP 

See Also
GridBody.rowDynamicStyles
GridStyles
GridColumn.styles
ColumnStyles
Examples
Alternate Row Colors
Column Dynamic Styles
Column Styles