ActiveReports 6 Online Help
Conditionally Show or Hide Details
Show AllShow All
Hide AllHide All

You can use conditions in the Format event to control when the report's Detail section is shown.

To add code to hide the detail section

  1. Double-click the detail section of the report to create an event-handling method for the Detail Format event.
  2. Add code to the handler to hide the detail section if the product is discontinued.

The following example shows what the code for the method looks like. This code assumes that your report has the following fields:

To write the code in Visual Basic.NET

To write the code in C#

See Also

Walkthroughs