GrapeCity.Win.MultiRow Namespace > Section Class : Visible Property |
<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
[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;}
Exception | Description |
---|---|
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. |
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
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