GrapeCity MultiRow Windows Forms Documentation
Visible Property (Section)
Example 


Gets or sets a value that indicates whether this Section is visible.
Syntax
<DefaultValueAttribute()>
<LocalizableAttribute(True)>
<SRDescriptionAttribute("Indicates whether the Section is visible or hidden.")>
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
<SRCategoryAttribute("Behavior")>
<TakeCellFreezeAttribute(True)>
Public Overridable Property Visible As Boolean
Dim instance As Section
Dim value As Boolean
 
instance.Visible = value
 
value = instance.Visible
[DefaultValue()]
[Localizable(true)]
[SRDescription("Indicates whether the Section is visible or hidden.")]
[RefreshProperties(RefreshProperties.Repaint)]
[SRCategory("Behavior")]
[TakeCellFreeze(true)]
public virtual bool Visible {get; set;}

Property Value

true if visible; otherwise, false. The default is true.
Exceptions
ExceptionDescription
System.InvalidOperationException

The CurrentCell is in this Section and the CurrentCell is in edit mode, but it cannot end edit mode for some reason.

-or-

The CurrentCell is in this Section, but the CurrentCell cannot be cleared for some reason.

-or-

The CurrentSection is this Section, but it cannot be cleared for some reason.

Example
The following code example shows how to use the visible setting. This code example is part of a larger example provided for the Section class.
void setVisibleButton_Click(object sender, EventArgs e)
       {
           gcMultiRow1.Rows[0].Visible = !gcMultiRow1.Rows[0].Visible;
       }
Private Sub setVisibleButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles setVisibleButton.Click
        gcMultiRow1.Rows(0).Visible = Not gcMultiRow1.Rows(0).Visible
    End Sub
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Section Class
Section Members

 

 


Copyright © GrapeCity, inc. All rights reserved.