alexa
menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class GridSelectionMode

    Defines the constants that specify how item selection is performed in SfDataGrid.

    Inheritance
    System.Object
    GridSelectionMode
    Namespace: Syncfusion.UI.Xaml.Grid
    Assembly: Syncfusion.SfGrid.WPF.dll
    Syntax
    public sealed class GridSelectionMode : Enum
    Remarks

    Use SelectionMode to control whether no, single, multiple, or extended selection is allowed.

    Fields

    Extended

    Multiple items can be selected by using the SHIFT, CTRL, and arrow keys to make selections.

    Declaration
    public const GridSelectionMode Extended
    Field Value
    Type
    GridSelectionMode
    Remarks

    This mode supports range selection and disjoint selection through keyboard interaction.

    Multiple

    Multiple items can be selected at the same time.

    Declaration
    public const GridSelectionMode Multiple
    Field Value
    Type
    GridSelectionMode
    Remarks

    Multiple rows or cells can be selected without using modifier keys.

    None

    No items can be selected.

    Declaration
    public const GridSelectionMode None
    Field Value
    Type
    GridSelectionMode
    Remarks

    Selection is disabled in the grid.

    Single

    Only one item can be selected at a time.

    Declaration
    public const GridSelectionMode Single
    Field Value
    Type
    GridSelectionMode
    Remarks

    Selecting a new item clears the previous selection.

    SingleDeselect

    Only one item can be selected at a time. In addition, it lets deselect the selected row.

    Declaration
    public const GridSelectionMode SingleDeselect
    Field Value
    Type
    GridSelectionMode
    Remarks

    Selecting the current item again clears the selection.

    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved