GrapeCity MultiRow Windows Forms Documentation
AllowUserToReverseSelect Property
Example 


Gets or sets a value that indicates whether to support reverse selection with Ctrl plus a mouse click.
Syntax
<SRDescriptionAttribute("Indicates whether to support reverse selection by holding down Ctrl while clicking the right mouse button.")>
<SRCategoryAttribute("Behavior")>
<DefaultValueAttribute()>
Public Property AllowUserToReverseSelect As Boolean
Dim instance As GcMultiRow
Dim value As Boolean
 
instance.AllowUserToReverseSelect = value
 
value = instance.AllowUserToReverseSelect
[SRDescription("Indicates whether to support reverse selection by holding down Ctrl while clicking the right mouse button.")]
[SRCategory("Behavior")]
[DefaultValue()]
public bool AllowUserToReverseSelect {get; set;}

Property Value

true if supporting reverse selection; otherwise, false. The default is false.
Remarks
You can select and unselect the Cell or Row with Ctrl and a mouse click if you set this property to true.
Example
The following code example shows how to use this property to customize the selection behavior. This code example is part of a larger example provided for the ViewMode class.
void allowReverseSelectCheckBox_CheckedChanged(object sender, EventArgs e)
        {
            // When allow reverse select, user can reverse select a cell by mouse clicking with Ctrl key pressed. 
            this.gcMultiRow1.AllowUserToReverseSelect = allowReverseSelectCheckBox.Checked;
        }
Private Sub allowReverseSelectCheckBox_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs) 
Handles allowReverseSelectCheckBox.CheckedChanged
        ' When allow reverse select, user can reverse select a cell by mouse clicking with Ctrl key pressed. 
        Me.gcMultiRow1.AllowUserToReverseSelect = allowReverseSelectCheckBox.Checked
    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

GcMultiRow Class
GcMultiRow Members

 

 


Copyright © GrapeCity, inc. All rights reserved.