Class VirtualGridSelection
Represents a class that stores the selection in RadVirtualGrid.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class VirtualGridSelection
Constructors
VirtualGridSelection()
Initializes a new instance of the Virtual
Declaration
public VirtualGridSelection()
Properties
CurrentColumnIndex
Gets the index of the current column.
Declaration
public int CurrentColumnIndex { get; }
Property Value
System.
|
CurrentRowIndex
Gets the index of the current row.
Declaration
public int CurrentRowIndex { get; }
Property Value
System.
|
CurrentViewInfo
Gets the current view info.
Declaration
public VirtualGridViewInfo CurrentViewInfo { get; }
Property Value
HasSelection
Gets a value indicating whether there are selected cells.
Declaration
public bool HasSelection { get; }
Property Value
System.
|
MaxColumnIndex
Gets the column index of the row where the current selection ends.
Declaration
public int MaxColumnIndex { get; }
Property Value
System.
|
MaxRowIndex
Gets the row index of the row where the current selection ends.
Declaration
public int MaxRowIndex { get; }
Property Value
System.
|
MinColumnIndex
Gets the column index of the row where the current selection starts.
Declaration
public int MinColumnIndex { get; }
Property Value
System.
|
MinRowIndex
Gets the row index of the row where the current selection starts.
Declaration
public int MinRowIndex { get; }
Property Value
System.
|
Multiselect
Gets or sets a value indicating whether multiple cells can be selected simultaneously.
Declaration
public bool Multiselect { get; set; }
Property Value
System.
|
SelectedRegion
Gets the current selected region.
Declaration
public SelectionRegion SelectedRegion { get; }
Property Value
SelectedRegions
Gets all selected regions.
Declaration
public IEnumerable<SelectionRegion> SelectedRegions { get; }
Property Value
System.
|
SelectionMode
Gets or sets a value indicating how cells are selected.
Declaration
public VirtualGridSelectionMode SelectionMode { get; set; }
Property Value
Methods
AddSelectedRegions(SelectionRegion)
Adds a new Selection
Declaration
public void AddSelectedRegions(SelectionRegion selectionRegion)
Parameters
Selection The selection region to add. |
BeginSelection(Int32, Int32, VirtualGridViewInfo, Boolean)
Begins a new selection operation.
Declaration
public void BeginSelection(int rowIndex, int columnIndex, VirtualGridViewInfo viewInfo, bool keepSelection)
Parameters
System. The row index of the cell to begin the selection from. |
System. The column index of the cell to begin the selection from. |
Virtual The view info of the cell to begin the selection from. |
System. Determines whether old selection should be kept or discarded. |
ClearSelectedRegions()
ClearSelection()
Clears all selected cells.
Declaration
public void ClearSelection()
ColumnContainsSelection(Int32, VirtualGridViewInfo)
Returns a value indicating whther the provided column has selected cells in it.
Declaration
public bool ColumnContainsSelection(int columnIndex, VirtualGridViewInfo viewInfo)
Parameters
System. The column index. |
Virtual The view info of the row. |
Returns
System.
|
ExtendCurrentRegion(Int32, Int32)
Extends the current selection region to the provided cell.
Declaration
public void ExtendCurrentRegion(int rowIndex, int columnIndex)
Parameters
System. The cell row index. |
System. The cell column index. |
IsSelected(Int32, Int32, VirtualGridViewInfo)
Returns a value indicating whether the provided cell is selected.
Declaration
public bool IsSelected(int rowIndex, int columnIndex, VirtualGridViewInfo viewInfo)
Parameters
System. The row index of the cell. |
System. The column index of the cell. |
Virtual The view info of the cell. |
Returns
System.
|
OnSelectionChanged()
Fires the Selection
Declaration
protected virtual void OnSelectionChanged()
OnSelectionChanging(VirtualGridSelectionChangingEventArgs)
Fires the Selection
Declaration
protected virtual void OnSelectionChanging(VirtualGridSelectionChangingEventArgs args)
Parameters
RowContainsSelection(Int32, VirtualGridViewInfo)
Returns a value indicating whther the provided row has selected cells in it.
Declaration
public bool RowContainsSelection(int rowIndex, VirtualGridViewInfo viewInfo)
Parameters
System. The row index. |
Virtual The view info of the row. |
Returns
System.
|
SelectAll()
Selects all cells in the grid.
Declaration
public void SelectAll()
Events
SelectionChanged
Occurs after the selection of the grid is changed.
Declaration
public event EventHandler SelectionChanged
Event Type
System.
|
SelectionChanging
Occurs before the selection of the grid is changed.
Declaration
public event VirtualGridSelectionChangingEventHandler SelectionChanging