GrapeCity.Win.MultiRow Namespace > Section Class : Selected Property |
<BrowsableAttribute(False)> <EditorBrowsableAttribute(EditorBrowsableState.Advanced)> <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> Public Property Selected As Boolean
[Browsable(false)] [EditorBrowsable(EditorBrowsableState.Advanced)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public bool Selected {get; set;}
Exception | Description |
---|---|
System.InvalidOperationException | The section has not been added to a GcMultiRow control. -or- -or- ViewMode of GcMultiRow is ViewMode.Display. -or- This section is invisible. |
If this property is true, all the cells in this section are selected; but if this property is false, cell selection is determined by the Selected property.
The Selectable property controls whether the Selected property is set to true.
void setSelectButton_Click(object sender, EventArgs e) { gcMultiRow1.Rows[1].Selected = !gcMultiRow1.Rows[1].Selected; }
Private Sub setSelectButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles setSelectButton.Click gcMultiRow1.Rows(1).Selected = Not gcMultiRow1.Rows(1).Selected 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