/// <summary> /// Creates the current cell and manages the current cell related operations in SfTreeGrid. /// </summary> /// <returns> /// Returns the corresponding <see cref="Syncfusion.UI.Xaml.TreeGrid.TreeGridCurrentCellManager"/> instance. /// </returns> protected virtual TreeGridCurrentCellManager CreateCurrentCellManager() { var _currentCellManager = new TreeGridCurrentCellManager(this.treeGrid) { SuspendUpdates = SuspendUpdates, ResumeUpdates = ResumeUpdates }; return(_currentCellManager); }
/// <summary> /// Disposes all the resources used by the <see cref="Syncfusion.UI.Xaml.TreeGrid.TreeGridBaseSelectionController"/> class. /// </summary> /// <param name="isDisposing">Indicates whether the call is from Dispose method or from a finalizer.</param> protected virtual void Dispose(bool disposing) { if (disposing) { this.treeGrid = null; if (this.currentCellManager != null) { this.currentCellManager.Dispose(); this.currentCellManager = null; } if (this.selectedRows != null) { this.selectedRows.Clear(); this.selectedRows = null; } } }
public TreeGridBaseSelectionController(SfTreeGrid treeGrid) { this.treeGrid = treeGrid; SelectedRows = new TreeGridSelectedRowsCollection(); CurrentCellManager = CreateCurrentCellManager(); }