Specifies whether the Section will be rendered in the report.
Namespace:
C1.C1ReportAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
[DefaultValueAttribute(true)] public bool Visible { get; set; } |
Visual Basic |
---|
<DefaultValueAttribute(True)> _ Public Property Visible As Boolean Get Set |
Remarks
The default value for this property is True.
Examples
The following code toggles the display of a group by turning its Sort property on or off and setting the Visible property of the Group's Header and Footer sections:
Copy CodeVisual Basic
Dim bShowGroup As Boolean bShowGroup = True With c1r.Groups(0) If bShowGroup Then .SectionHeader.Visible = True .SectionFooter.Visible = True .Sort = SortEnum.Ascending Else .SectionHeader.Visible = False .SectionFooter.Visible = False .Sort = SortEnum.NoSort End If End With |
Copy CodeC#
bool bShowGroup; bShowGroup = true; if (bShowGroup) { c1r.Groups[0].SectionHeader.Visible = true; c1r.Groups[0].SectionFooter.Visible = true; c1r.Groups[0].Sort = SortEnum.Ascending; } else { c1r.Groups[0].SectionHeader.Visible = false; c1r.Groups[0].SectionFooter.Visible = false; c1r.Groups[0].Sort = SortEnum.NoSort; } |
For an example using the Visible property, see the Customizable Reports topic.