Next
Update
Prev

The styles also can be defined in XML-formatted Dataset. This sample Grid demonstrates how to define the styleName property in the XML-formatted Dataset. Click the Data tab and find how to define the style name in the data fields (RegionalRevenue, Quarter, Year).


[Data]
...
<Quarter ... styleName="subTotalStyle">2/4 SUM
</Quarter>
...
<RegionalRevenue ... styleName="allTotalStyle" ... >
  <Year ... styleName="allTotalHeaderStyle" ... >T O T A L
...

[Layout]
...
</DataGrid>
<Style>
  .subTotalStyle {
    color: #008406;
    textAlign: center;
  }
  .allTotalHeaderStyle {
    color: #1956DD;
    fontWeight: bold;
    textAlign: center;
  }
  .allTotalStyle {
    color: #1956DD;
    fontWeight: bold;
    textAlign: center;
  }			
</Style>

© 2017 KoolChart. All rights reserved.