menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CheckBoxRowSelectionController - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CheckBoxRowSelectionController

    Represents a class that implements the selection behaviors of SfTreeGrid when ShowCheckBox is true/>.

    Inheritance
    System.Object
    TreeGridBaseSelectionController
    TreeGridRowSelectionController
    CheckBoxRowSelectionController
    Implements
    ITreeGridSelectionController
    System.IDisposable
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    TreeGridBaseSelectionController.ChangeFlowDirectionKey(Key)
    TreeGridBaseSelectionController.CreateCurrentCellManager()
    TreeGridBaseSelectionController.CurrentCellManager
    TreeGridBaseSelectionController.Dispose()
    TreeGridBaseSelectionController.Dispose(Boolean)
    TreeGridBaseSelectionController.HandleGridOperations(TreeGridOperationsHandlerArgs)
    TreeGridBaseSelectionController.IsSuspended
    TreeGridBaseSelectionController.LastPressedKey
    TreeGridBaseSelectionController.PressedRowColumnIndex
    TreeGridBaseSelectionController.ProcessOnRowHeaderChanged()
    TreeGridBaseSelectionController.RaiseSelectionChanged(List<Object>, List<Object>)
    TreeGridBaseSelectionController.RaiseSelectionChanging(List<Object>, List<Object>)
    TreeGridBaseSelectionController.ResumeUpdates()
    TreeGridBaseSelectionController.ScrollToRowIndex(Int32)
    TreeGridBaseSelectionController.SelectedRows
    TreeGridBaseSelectionController.SetPressedIndex(RowColumnIndex)
    TreeGridBaseSelectionController.SuspendUpdates()
    TreeGridBaseSelectionController.TreeGrid
    TreeGridRowSelectionController.ClearSelections(Boolean)
    TreeGridRowSelectionController.GetNextRowIndex(Int32)
    TreeGridRowSelectionController.GetPreviousRowIndex(Int32)
    TreeGridRowSelectionController.HandleCollectionChanged(NotifyCollectionChangedEventArgs, TreeGridCollectionChangedReason)
    TreeGridRowSelectionController.HandleNodeExpandCollapse(Int32, Int32, Boolean)
    TreeGridRowSelectionController.ProcessCurrentItemChanged(SelectionPropertyChangedHandlerArgs)
    TreeGridRowSelectionController.ProcessKeyDown(KeyEventArgs)
    TreeGridRowSelectionController.ProcessNavigationModeChanged(SelectionPropertyChangedHandlerArgs)
    TreeGridRowSelectionController.ProcessOnSortChanged(SortColumnChangedHandle)
    TreeGridRowSelectionController.ProcessOnTapped(MouseButtonEventArgs, RowColumnIndex)
    TreeGridRowSelectionController.ProcessPointerMoved(MouseEventArgs, RowColumnIndex)
    TreeGridRowSelectionController.ProcessPointerPressed(MouseButtonEventArgs, RowColumnIndex)
    TreeGridRowSelectionController.ProcessPointerReleased(MouseButtonEventArgs, RowColumnIndex)
    TreeGridRowSelectionController.ProcessPointerSelection(MouseButtonEventArgs, RowColumnIndex)
    TreeGridRowSelectionController.ProcessPointerWheel(MouseWheelEventArgs, RowColumnIndex)
    TreeGridRowSelectionController.ProcessSelectedIndexChanged(SelectionPropertyChangedHandlerArgs)
    TreeGridRowSelectionController.ProcessSelectedItemChanged(SelectionPropertyChangedHandlerArgs)
    TreeGridRowSelectionController.ProcessSelectionModeChanged(SelectionPropertyChangedHandlerArgs)
    TreeGridRowSelectionController.ProcessSourceCollectionChanged(NotifyCollectionChangedEventArgs, TreeGridCollectionChangedReason)
    TreeGridRowSelectionController.RefreshSelection()
    TreeGridRowSelectionController.UpdateCurrentRowIndex(Boolean)
    Namespace: Syncfusion.UI.Xaml.TreeGrid
    Assembly: Syncfusion.SfGrid.WPF.dll
    Syntax
    public class CheckBoxRowSelectionController : TreeGridRowSelectionController, ITreeGridSelectionController, IDisposable

    Constructors

    CheckBoxRowSelectionController(SfTreeGrid)

    Initializes a new instance of CheckBoxRowSelectionController class.

    Declaration
    public CheckBoxRowSelectionController(SfTreeGrid treeGrid)
    Parameters
    Type Name Description
    SfTreeGrid treeGrid

    The corresponding SfTreeGrid instance.

    Methods

    HandleKeyDown(KeyEventArgs)

    Handles the selection for the keyboard interactions that are performed in SfTreeGrid.

    Declaration
    public override bool HandleKeyDown(KeyEventArgs args)
    Parameters
    Type Name Description
    System.Windows.Input.KeyEventArgs args

    Contains information about the key that was pressed.

    Returns
    Type Description
    System.Boolean

    true if the key should be handled in SfTreeGrid; otherwise, false.

    Overrides
    TreeGridRowSelectionController.HandleKeyDown(KeyEventArgs)

    HandleNodeOperations(NodeOperation)

    Processes the selection when the node is expanded/collapsed in SfTreeGrid.

    Declaration
    protected override void HandleNodeOperations(NodeOperation NodeOperation)
    Parameters
    Type Name Description
    NodeOperation NodeOperation

    Contains the value for collection changes during expanding/collapsing action.

    Overrides
    TreeGridRowSelectionController.HandleNodeOperations(NodeOperation)
    Remarks

    This method refreshes the selection while expanding/collapsing the node in SfTreeGrid.

    HandlePointerOperations(GridPointerEventArgs, RowColumnIndex)

    Handles selection when any of the PointerOperation such as pressed,released,moved,and etc performed in SfTreeGrid.

    Declaration
    public override void HandlePointerOperations(GridPointerEventArgs args, RowColumnIndex rowColumnIndex)
    Parameters
    Type Name Description
    GridPointerEventArgs args

    The GridPointerEventArgs that contains the type of pointer operations and its arguments.

    RowColumnIndex rowColumnIndex

    The corresponding rowColumnIndex of the cell.

    Overrides
    TreeGridBaseSelectionController.HandlePointerOperations(GridPointerEventArgs, RowColumnIndex)
    Remarks

    This method is invoked when any of the PointerOperation are performed in SfTreeGrid.

    HandleSelectionPropertyChanges(SelectionPropertyChangedHandlerArgs)

    Handles selection when the selection property such as SelectedIndex,SelectedItem and SelectionMode value changes occurred.

    Declaration
    public override void HandleSelectionPropertyChanges(SelectionPropertyChangedHandlerArgs handle)
    Parameters
    Type Name Description
    SelectionPropertyChangedHandlerArgs handle

    The SelectionPropertyChangedHandlerArgs that contains the corresponding property name and its value changes.

    Overrides
    TreeGridBaseSelectionController.HandleSelectionPropertyChanges(SelectionPropertyChangedHandlerArgs)
    Remarks

    This method is invoked when the selection property values such as SelectedIndex,SelectedItem and SelectionMode are changed in SfTreeGrid.

    MoveCurrentCell(RowColumnIndex, Boolean)

    Moves the current cell to the specified rowColumnIndex.

    Declaration
    public override void MoveCurrentCell(RowColumnIndex rowColumnIndex, bool needToClearSelection = true)
    Parameters
    Type Name Description
    RowColumnIndex rowColumnIndex

    Specifies the corresponding rowColumnIndex to move the current cell.

    System.Boolean needToClearSelection

    Decides whether the current row selection should remove or not while moving the current cell.

    Overrides
    TreeGridRowSelectionController.MoveCurrentCell(RowColumnIndex, Boolean)
    Remarks

    This method is not applicable when NavigationMode is Row.

    ProcessNodeCollapsed(Int32, Int32)

    Processes the row selection when the node is collapsed from view.

    Declaration
    protected override void ProcessNodeCollapsed(int removeAtIndex, int count)
    Parameters
    Type Name Description
    System.Int32 removeAtIndex

    The corresponding index of the node that is collapsed from the view.

    System.Int32 count

    removed rows count.

    Overrides
    TreeGridRowSelectionController.ProcessNodeCollapsed(Int32, Int32)

    ProcessNodeExpanded(Int32, Int32)

    Processes the row selection when the node is expanded in SfTreeGrid.

    Declaration
    protected override void ProcessNodeExpanded(int insertIndex, int count)
    Parameters
    Type Name Description
    System.Int32 insertIndex

    The corresponding index of the node that is expanded in to view.

    System.Int32 count

    inserted rows count.

    Overrides
    TreeGridRowSelectionController.ProcessNodeExpanded(Int32, Int32)

    ProcessOnDoubleTapped(RowColumnIndex)

    Processes the selection when the mouse point is double tapped on the particular cell in SfTreeGrid.

    Declaration
    protected override void ProcessOnDoubleTapped(RowColumnIndex currentRowColumnIndex)
    Parameters
    Type Name Description
    RowColumnIndex currentRowColumnIndex

    The corresponding rowColumnIndex of the mouse point.

    Overrides
    TreeGridRowSelectionController.ProcessOnDoubleTapped(RowColumnIndex)
    Remarks

    This method invoked to process selection and begin edit the cell when EditTrigger is OnDoubleTap.

    ProcessSelectedItemsChanged(NotifyCollectionChangedEventArgs)

    Processes the row selection when the SelectedItems property value changes.

    Declaration
    protected override void ProcessSelectedItemsChanged(NotifyCollectionChangedEventArgs e)
    Parameters
    Type Name Description
    System.Collections.Specialized.NotifyCollectionChangedEventArgs e

    The System.Collections.Specialized.NotifyCollectionChangedEventArgs that contains data for SelectedItems collection changes.

    Overrides
    TreeGridRowSelectionController.ProcessSelectedItemsChanged(NotifyCollectionChangedEventArgs)

    ProcessSelection(RowColumnIndex, RowColumnIndex, SelectionReason)

    Processes the row selection for the specified row index.

    Declaration
    protected override bool ProcessSelection(RowColumnIndex rowColumnIndex, RowColumnIndex previousCurrentCellIndex, SelectionReason reason)
    Parameters
    Type Name Description
    RowColumnIndex rowColumnIndex

    The row column index.

    RowColumnIndex previousCurrentCellIndex

    The previous current cell row column index.

    SelectionReason reason

    Contains the reason for process selection SelectionReason.

    Returns
    Type Description
    System.Boolean

    Returns true if the selection is added to corresponding row and column index; otherwise, false.

    Overrides
    TreeGridRowSelectionController.ProcessSelection(RowColumnIndex, RowColumnIndex, SelectionReason)

    RefreshSelectedItems()

    Refreshes the SelectedItems collection in SfTreeGrid.

    Declaration
    protected override void RefreshSelectedItems()
    Overrides
    TreeGridRowSelectionController.RefreshSelectedItems()
    Remarks

    This method refresh the SelectedItems collection when the grid related operations performed.

    SelectAll()

    Selects all the rows in SfTreeGrid.

    Declaration
    public override void SelectAll()
    Overrides
    TreeGridRowSelectionController.SelectAll()
    Remarks

    This method only works for Multiple and Extended mode selection.

    SelectRows(Int32, Int32)

    Selects the rows corresponding to the specified start and end index of the row.

    Declaration
    public override void SelectRows(int startRowIndex, int endRowIndex)
    Parameters
    Type Name Description
    System.Int32 startRowIndex

    The start index of the row.

    System.Int32 endRowIndex

    The end index of the row.

    Overrides
    TreeGridRowSelectionController.SelectRows(Int32, Int32)
    Remarks

    This method only works for Multiple and Extended mode selection.

    Implements

    ITreeGridSelectionController
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved