GrapeCity MultiRow Windows Forms Documentation
Selected Property (Section)
Example 


Gets a value that indicates whether this section has been selected.
Syntax
<BrowsableAttribute(False)>
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
Public Property Selected As Boolean
Dim instance As Section
Dim value As Boolean
 
instance.Selected = value
 
value = instance.Selected
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public bool Selected {get; set;}

Property Value

true if this section has been selected; otherwise, false. The default is false.
Exceptions
ExceptionDescription
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.

Remarks

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.

Example
The following code example shows how to select a section. This code example is part of a larger example provided for the Section class.
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
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
Selectable Property
Selected Property

 

 


Copyright © GrapeCity, inc. All rights reserved.