Class DataGridCellSelectionController
Represents a class that implements DataGridSelectionController that contains methods for handling cell selection operations in a SfDataGrid control.
Implements
Inherited Members
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DataGridCellSelectionController : DataGridSelectionController, IDisposable
Constructors
DataGridCellSelectionController(SfDataGrid)
Initializes a new instance of the DataGridCellSelectionController class.
Declaration
public DataGridCellSelectionController(SfDataGrid dataGrid)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid |
Methods
ApplySelection(RowColumnIndex, Boolean)
Applies selection to the cell/row at the specified row and column index based on the DataGridSelectionUnit.
Declaration
protected override void ApplySelection(RowColumnIndex rowColumnIndex, bool isfromNavigationKeys = false)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | rowColumnIndex | |
System.Boolean | isfromNavigationKeys |
Overrides
Dispose(Boolean)
Releases the unmanaged resources used by the component and optionally releases the managed resources.
Declaration
protected override void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDisposing |
Overrides
HandleCollectionChanged(NotifyCollectionChangedEventArgs, CollectionChangedReason)
Processes selection by handling the possible collection changes in SfDataGrid.
Declaration
protected virtual void HandleCollectionChanged(NotifyCollectionChangedEventArgs e, CollectionChangedReason reason)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Specialized.NotifyCollectionChangedEventArgs | e | |
Syncfusion.Maui.DataGrid.CollectionChangedReason | reason |
HandleGridOperation(GridOperationHandlerArgs)
Handles and processes selection based on the Syncfusion.Maui.DataGrid.GridOperation performed in SfDataGrid.
Declaration
protected virtual void HandleGridOperation(GridOperationHandlerArgs args)
Parameters
Type | Name | Description |
---|---|---|
GridOperationHandlerArgs | args |
HandlePointerOperation(RowColumnIndex)
Processes selection based on the
Declaration
protected virtual void HandlePointerOperation(RowColumnIndex rowColumnIndex)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | rowColumnIndex |
HandleSelectionPropertyChanges(DataGridSelectionPropertyChangedEventArgs)
Handles and processes selection based on which selection related property has changed.
Declaration
protected virtual void HandleSelectionPropertyChanges(DataGridSelectionPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
DataGridSelectionPropertyChangedEventArgs | args |
ProcessCurrentItemChanged(DataGridSelectionPropertyChangedEventArgs)
Processes selection when the
Declaration
protected override void ProcessCurrentItemChanged(DataGridSelectionPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
DataGridSelectionPropertyChangedEventArgs | args |
Overrides
ProcessingPointerTouchUp(RowColumnIndex)
Processes the pointer touch-up operation of a cell. Handles the touch-up operation in each cell of a SfDataGrid control.
Declaration
protected virtual void ProcessingPointerTouchUp(RowColumnIndex rowColumnIndex)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | rowColumnIndex |
ProcessOnColumnRemoved(DataGridColumn)
Processes selection when a DataGridColumn is removed from the SfDataGrid control.
Declaration
protected virtual void ProcessOnColumnRemoved(DataGridColumn column)
Parameters
Type | Name | Description |
---|---|---|
DataGridColumn | column |
ProcessOnGroupChanged(DataGridGroupDescriptionChangedEventArgs)
Processes selection when the grouping is changed in a SfDataGrid control.
Declaration
protected override void ProcessOnGroupChanged(DataGridGroupDescriptionChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
DataGridGroupDescriptionChangedEventArgs | args |
Overrides
ProcessOnSortChanged(DataGridSortDescriptionChangedEventArgs)
Processes selection when the sorting is changed in aSfDataGrid control.
Declaration
protected override void ProcessOnSortChanged(DataGridSortDescriptionChangedEventArgs sortColumnHandleArgs)
Parameters
Type | Name | Description |
---|---|---|
DataGridSortDescriptionChangedEventArgs | sortColumnHandleArgs |
Overrides
ProcessSelectedIndexChanged(DataGridSelectionPropertyChangedEventArgs)
Processes selection when the SelectedIndex changes.
Declaration
protected override void ProcessSelectedIndexChanged(DataGridSelectionPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
DataGridSelectionPropertyChangedEventArgs | args |
Overrides
ProcessSelectedItemChanged(DataGridSelectionPropertyChangedEventArgs)
Processes theSelectedRow changes in aSfDataGrid control.
Declaration
protected override void ProcessSelectedItemChanged(DataGridSelectionPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
DataGridSelectionPropertyChangedEventArgs | args |
Overrides
ProcessSelectionModeChanged(DataGridSelectionPropertyChangedEventArgs)
Processes theDataGridSelectionMode changes in aSfDataGrid control.
Declaration
protected override void ProcessSelectionModeChanged(DataGridSelectionPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
DataGridSelectionPropertyChangedEventArgs | args |
Overrides
ProcessSourceCollectionChanged(NotifyCollectionChangedEventArgs, CollectionChangedReason)
Processes the source collection changes to update selection in aSfDataGrid control.
Declaration
protected override void ProcessSourceCollectionChanged(NotifyCollectionChangedEventArgs e, CollectionChangedReason reason)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Specialized.NotifyCollectionChangedEventArgs | e | |
Syncfusion.Maui.DataGrid.CollectionChangedReason | reason |
Overrides
RefreshSelection()
Refreshes the selections and sets values for theSelectedIndex, SelectedRow,
Declaration
protected virtual void RefreshSelection()
SelectAll()
Selects all the cells in SfDataGrid.
Declaration
protected override void SelectAll()