The GridDataControl has built-in support for conditional formatting. This feature allows you to format cells and rows based on a certain condition. This can be achieved by setting GridDataControl.ConditionalFormats property. ConditionalFormats is a collection property where you can add any number of conditions using GridDataConditionalFormat.
GridDataConditionalFormat has two properties, namely: Style, that is GridDataStyleInfo and Conditions, that is FreezableCollection of GridDataCondition. When the specified conditions are fulfilled, the given style is applied to the cell or row based on AppylStyleToColumn. If ApplyStyleToColumn is True, the style is applied to that particular cell that matches the conditions. Otherwise, the style is applied to the row.
Here, GridDataConditionlFormat is defined for “Total” column and ApplyStyleToColumn is False. So the specified style is applied to the row.
When data updates come from underlying data, the specific cells alone get refreshed in UI, for better performance reasons. So when you specify GridDataConditionalFormat for a row, the specific cells alone get refreshed, based on the style specified in GridDataConditionalFormat. You can refresh the row by setting GridDataControl.Model.RefreshWholeRow property to True, as shown in the following code snippet,
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:||.NET Framework:||Product Version:|
or the page will be automatically redirected to sign-in page in 10 seconds.