This example demonstrates how to conditionally change control appearance at runtime. For this, it is necessary to create an instance of the FormattingRule class, specify its Condition and Formatting properties and add this objects to a report's sheet of formatting rules (XtraReport.FormattingRuleSheet) and to the collection of formatting rules of a control or a band, to which it should be applied (XRControl.FormattingRules).
↧