New to Telerik UI for WPFStart a free 30-day trial

Represents a tabular control that dynamically loads data, using a light-weight engine to display and modify it.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.VirtualGrid.dll

Syntax:

C#
[TelerikToolboxCategory("Data")]
public class RadVirtualGrid : Control

Inheritance: objectRadVirtualGrid

Constructors

Initializes a new instance of the RadVirtualGrid class.

C#
public RadVirtualGrid()

Fields

ActionOnLostFocusProperty

DependencyProperty

Represents the ActionOnLostFocus dependency property.

C#
public static readonly DependencyProperty ActionOnLostFocusProperty

AlternationBrushProperty

DependencyProperty

Represents the AlternationBrush dependency property.

C#
public static readonly DependencyProperty AlternationBrushProperty

CanUserDeleteRowsProperty

DependencyProperty

Represents the CanUserDeleteRows dependency property.

C#
public static readonly DependencyProperty CanUserDeleteRowsProperty

CanUserEditProperty

DependencyProperty

Represents the CanUserEdit dependency property.

C#
public static readonly DependencyProperty CanUserEditProperty

Represents the CanUserFilterColumns dependency property.

C#
public static readonly DependencyProperty CanUserFilterColumnsProperty

CanUserInsertRowsProperty

DependencyProperty

Represents the CanUserInsertRows dependency property.

C#
public static readonly DependencyProperty CanUserInsertRowsProperty

Represents the CanUserResizeColumns dependency property.

C#
public static readonly DependencyProperty CanUserResizeColumnsProperty

CanUserResizeRowsProperty

DependencyProperty

Represents the CanUserResizeRows dependency property.

C#
public static readonly DependencyProperty CanUserResizeRowsProperty

CanUserSelectProperty

DependencyProperty

Represents the CanUserEdit dependency property.

C#
public static readonly DependencyProperty CanUserSelectProperty

CanUserSortColumnsProperty

DependencyProperty

Represents the CanUserSortColumns dependency property.

C#
public static readonly DependencyProperty CanUserSortColumnsProperty

CellPaddingProperty

DependencyProperty

Represents the CellPadding dependency property.

C#
public static readonly DependencyProperty CellPaddingProperty

CellTextAlignmentProperty

DependencyProperty

Represents the CellTextAlignment dependency property.

C#
public static readonly DependencyProperty CellTextAlignmentProperty

CellToolTipTemplateProperty

DependencyProperty

Identifies the CellToolTipTemplate dependency property.

C#
public static readonly DependencyProperty CellToolTipTemplateProperty

ClipboardCopyModeProperty

DependencyProperty

Represents the ClipboardCopyMode dependency property.

C#
public static readonly DependencyProperty ClipboardCopyModeProperty

Represents the ColumnAlternationCount dependency property.

C#
public static readonly DependencyProperty ColumnAlternationCountProperty

Represents the ColumnHeaderBackground dependency property.

C#
public static readonly DependencyProperty ColumnHeaderBackgroundProperty

Represents the ColumnHeaderForeground dependency property.

C#
public static readonly DependencyProperty ColumnHeaderForegroundProperty

ColumnHeaderHeightProperty

DependencyProperty

Represents the ColumnHeaderHeight dependency property.

C#
public static readonly DependencyProperty ColumnHeaderHeightProperty

Represents the ColumnHeaderLinesBrush dependency property.

C#
public static readonly DependencyProperty ColumnHeaderLinesBrushProperty

ColumnWidthProperty

DependencyProperty

Represents the ColumnWidth dependency property.

C#
public static readonly DependencyProperty ColumnWidthProperty

CopiedEvent

RoutedEvent

Occurs after copying the RadVirtualGrid's selected cells to the Clipboard.

C#
public static readonly RoutedEvent CopiedEvent

Occurs on copying a cell to the Clipboard.

C#
public static readonly RoutedEvent CopyingCellClipboardContentEvent

CopyingEvent

RoutedEvent

Occurs on copying the RadVirtualGrid's selected cells to the Clipboard.

C#
public static readonly RoutedEvent CopyingEvent

CurrentCellStrokeProperty

DependencyProperty

Represents the CurrentCellStroke dependency property.

C#
public static readonly DependencyProperty CurrentCellStrokeProperty

DataProviderProperty

DependencyProperty

Represents the DataProvider dependency property.

C#
public static readonly DependencyProperty DataProviderProperty

EditTriggersProperty

DependencyProperty

Represents the EditTriggers dependency property.

C#
public static readonly DependencyProperty EditTriggersProperty

Represents the FilterIconBackgroundFiltered dependency property.

C#
public static readonly DependencyProperty FilterIconBackgroundFilteredProperty

Represents the FilterIconBackground dependency property.

C#
public static readonly DependencyProperty FilterIconBackgroundProperty

Represents the HorizontalLinesBrush dependency property.

C#
public static readonly DependencyProperty HorizontalLinesBrushProperty

InitialColumnCountProperty

DependencyProperty

Represents the InitialColumnCount dependency property.

C#
public static readonly DependencyProperty InitialColumnCountProperty

InitialRowCountProperty

DependencyProperty

Represents the InitialRowCount dependency property.

C#
public static readonly DependencyProperty InitialRowCountProperty

IsFilterableProperty

DependencyProperty

Represents the IsFilterable dependency property.

C#
public static readonly DependencyProperty IsFilterableProperty

IsFilteringDeferredProperty

DependencyProperty

Represents the IsFilteringDeferred dependency property.

C#
public static readonly DependencyProperty IsFilteringDeferredProperty

IsSortableProperty

DependencyProperty

Represents the IsSortable dependency property.

C#
public static readonly DependencyProperty IsSortableProperty

LinesVisibilityProperty

DependencyProperty

Represents the LinesVisibility dependency property.

C#
public static readonly DependencyProperty LinesVisibilityProperty

MeasureTextOnRenderProperty

DependencyProperty

Represents the MeasureTextOnRender dependency property.

C#
public static readonly DependencyProperty MeasureTextOnRenderProperty

Represents the PinnedCellBackground dependency property.

C#
public static readonly DependencyProperty PinnedCellBackgroundProperty

Represents the PinnedCellForeground dependency property.

C#
public static readonly DependencyProperty PinnedCellForegroundProperty

Represents the PinnedRowHeaderBackground dependency property.

C#
public static readonly DependencyProperty PinnedRowHeaderBackgroundProperty

RowAlternationCountProperty

DependencyProperty

Represents the RowAlternationCount dependency property.

C#
public static readonly DependencyProperty RowAlternationCountProperty

RowHeaderBackgroundProperty

DependencyProperty

Represents the RowHeaderBackground dependency property.

C#
public static readonly DependencyProperty RowHeaderBackgroundProperty

RowHeaderForegroundProperty

DependencyProperty

Represents the RowHeaderForeground dependency property.

C#
public static readonly DependencyProperty RowHeaderForegroundProperty

RowHeaderLinesBrushProperty

DependencyProperty

Represents the RowHeaderLinesBrush dependency property.

C#
public static readonly DependencyProperty RowHeaderLinesBrushProperty

RowHeaderWidthProperty

DependencyProperty

Represents the RowHeaderWidth dependency property.

C#
public static readonly DependencyProperty RowHeaderWidthProperty

RowHeightProperty

DependencyProperty

Represents the RowHeight dependency property.

C#
public static readonly DependencyProperty RowHeightProperty

SelectedIndexProperty

DependencyProperty

Identifies the SelectedIndexProperty dependency property.

C#
public static readonly DependencyProperty SelectedIndexProperty

SelectionBrushProperty

DependencyProperty

Represents the SelectionBrush dependency property.

C#
public static readonly DependencyProperty SelectionBrushProperty

Identifies the SelectionChanged routed event.

C#
public static readonly RoutedEvent SelectionChangedEvent

SelectionModeProperty

DependencyProperty

Identifies the SelectionModeProperty dependency property.

C#
public static readonly DependencyProperty SelectionModeProperty

SelectionUnitProperty

DependencyProperty

Identifies the SelectionUnitProperty dependency property.

C#
public static readonly DependencyProperty SelectionUnitProperty

Represents the ShouldCreateAutomationPeer dependency property.

C#
public static readonly DependencyProperty ShouldCreateAutomationPeerProperty

ShowCellToolTipProperty

DependencyProperty

Represents the ShowCellToolTip dependency property.

C#
public static readonly DependencyProperty ShowCellToolTipProperty

ShowDistinctFiltersProperty

DependencyProperty

Represents the ShowDistinctFilters dependency property.

C#
public static readonly DependencyProperty ShowDistinctFiltersProperty

ShowFieldFiltersProperty

DependencyProperty

Represents the ShowFieldFilters dependency property.

C#
public static readonly DependencyProperty ShowFieldFiltersProperty

Represents the SortedHeaderBackground dependency property.

C#
public static readonly DependencyProperty SortedHeaderBackgroundProperty

Represents the SortedHeaderForeground dependency property.

C#
public static readonly DependencyProperty SortedHeaderForegroundProperty

SortIconBackgroundProperty

DependencyProperty

Represents the SortIndicatorBackground dependency property.

C#
public static readonly DependencyProperty SortIconBackgroundProperty

VerticalLinesBrushProperty

DependencyProperty

Represents the VerticalLinesBrush dependency property.

C#
public static readonly DependencyProperty VerticalLinesBrushProperty

Properties

Gets or sets the action to take when an element of the RadVirtualGrid loses focus.

C#
public ActionOnLostFocus ActionOnLostFocus { get; set; }
Property Value:

The action to take when an element of the RadVirtualGrid loses focus.

Get or sets the alternation color.

C#
public Brush AlternationBrush { get; set; }

Gets or sets a value that indicates whether the user can delete rows.

C#
public bool CanUserDeleteRows { get; set; }
Property Value:

true if the user can add new rows; otherwise, false. The registered default is true.

Gets or sets a value that indicates whether data can be modified through user input.

C#
public bool CanUserEdit { get; set; }
Property Value:

The can user edit.

Gets or sets a value that indicates whether users can filter columns through the UI.

C#
public bool CanUserFilterColumns { get; set; }

Gets or sets a value that indicates whether the user can add new rows.

C#
public bool CanUserInsertRows { get; set; }
Property Value:

true if the user can add new rows; otherwise, false. The registered default is true.

Gets or sets a value that indicates whether users can resize columns through the UI.

C#
public bool CanUserResizeColumns { get; set; }

Gets or sets a value that indicates whether users can resize rows through the UI.

C#
public bool CanUserResizeRows { get; set; }

Gets or sets a value that indicates whether a user can select rows or cells.

C#
public bool CanUserSelect { get; set; }
Property Value:

The can user edit.

Gets or sets a value that indicates whether users can sort columns through the UI.

C#
public bool CanUserSortColumns { get; set; }

CellPadding

Thickness

Gets or sets a value that indicates the cells' text padding.

C#
public Thickness CellPadding { get; set; }

CellTextAlignment

TextAlignment

Gets or sets the text alignment.

C#
public TextAlignment CellTextAlignment { get; set; }

Gets or sets the ContentTemplate of the tooltip that is shown for RadVirtualGrid cells.

C#
public DataTemplate CellToolTipTemplate { get; set; }

Gets or sets a value that indicates how data is copied to the clipboard.

C#
public VirtualGridClipboardCopyMode ClipboardCopyMode { get; set; }
Remarks:

Use this property to specify whether a user can copy RadVirtualGrid content to the clipboard.

Gets or sets the alternation step for columns.

C#
public int ColumnAlternationCount { get; set; }

Gets or sets the column headers' background.

C#
public Brush ColumnHeaderBackground { get; set; }

Gets or sets the column headers' foreground.

C#
public Brush ColumnHeaderForeground { get; set; }

Gets or sets the height of the column headers.

C#
public double ColumnHeaderHeight { get; set; }

Gets or sets the column header lines' stroke brush.

C#
public Brush ColumnHeaderLinesBrush { get; set; }

Gets or sets the width of the columns.

C#
public double ColumnWidth { get; set; }

Gets or sets the current cell info.

C#
public VirtualGridCellInfo CurrentCellInfo { get; set; }
Property Value:

The current cell info.

Gets or sets the stroke brush of the current cell.

C#
public Brush CurrentCellStroke { get; set; }

Gets or sets the data provider.

C#
public DataProvider DataProvider { get; set; }

Gets or sets the edit triggers.

C#
public VirtualGridEditTriggers EditTriggers { get; set; }
Property Value:

The edit triggers.

Gets or sets the filter icon background brush.

C#
public Brush FilterIconBackground { get; set; }

Gets or sets the filter icon background brush when the column is filtered.

C#
public Brush FilterIconBackgroundFiltered { get; set; }

Gets or sets the horizontal lines' stroke brush.

C#
public Brush HorizontalLinesBrush { get; set; }

Gets or sets the initial column count.

C#
public int InitialColumnCount { get; set; }

Gets or sets the initial row count.

C#
public int InitialRowCount { get; set; }

Gets or sets a value that indicates whether programmatic and UI filtering is possible.

C#
public bool IsFilterable { get; set; }

Gets or sets a value that indicates whether deferred filtering is enabled.

C#
public bool IsFilteringDeferred { get; set; }

Gets or sets a value that indicates whether programmatic and UI sorting is possible.

C#
public bool IsSortable { get; set; }

Gets the keyboard command provider.

C#
public IKeyboardCommandProvider KeyboardCommandProvider { get; set; }
Property Value:

The keyboard command provider. This class provides command key mappings.

Gets or sets the lines' visibility.

C#
public VirtualGridLinesVisibility LinesVisibility { get; set; }

Gets or sets a value that indicates whether text is measured when rendering. Setting it to true enables changing TextAlignment and FitColumnWidthToContent. It may affect rendering performance.

C#
public bool MeasureTextOnRender { get; set; }

Gets all pending commands.

C#
public List<ICommand> PendingCommands { get; }
Property Value:

The pending commands.

Gets or sets the cells' background when cells are pinned.

C#
public Brush PinnedCellBackground { get; set; }

Gets or sets the cells' foreground when cells are pinned.

C#
public Brush PinnedCellForeground { get; set; }

Gets or sets the pinned row headers' background.

C#
public Brush PinnedRowHeaderBackground { get; set; }

Gets or sets the alternation step for rows.

C#
public int RowAlternationCount { get; set; }

Gets or sets the row headers' background.

C#
public Brush RowHeaderBackground { get; set; }

Gets or sets the row header's foreground.

C#
public Brush RowHeaderForeground { get; set; }

Gets or sets the row header lines' stroke brush.

C#
public Brush RowHeaderLinesBrush { get; set; }

Gets or sets the width of the row headers.

C#
public double RowHeaderWidth { get; set; }

Gets or sets the height of the rows.

C#
public double RowHeight { get; set; }

Gets the selected cells.

C#
public IList<VirtualGridCellInfo> SelectedCells { get; }

Gets or sets the selected index of RadVirtualGrid.

C#
public int SelectedIndex { get; set; }

Gets the selected indexes.

C#
public IEnumerable<int> SelectedIndexes { get; }

Gets or sets a value that indicates the selection brush.

C#
public Brush SelectionBrush { get; set; }

SelectionMode

SelectionMode

Gets or sets the selection mode of the VirtualGrid. The default value is System.Windows.Controls.SelectionMode.

C#
public SelectionMode SelectionMode { get; set; }

Gets or sets the selection unit of the VirtualGrid. The default value is VirtualGridSelectionUnit.FullRow

C#
public VirtualGridSelectionUnit SelectionUnit { get; set; }

Gets or sets a value indicating whether automation peers for the RadVirtualGrid should be created.

C#
public bool ShouldCreateAutomationPeer { get; set; }
Remarks:

The default value of this property is False which will stop RadVirtualGrid from creating child automation peers for each of the visible cells. This may increase performance and decrease memory consumption on some touch-enabled computers, where the automation tree is created on application startup.

Gets or sets a value indicating whether a tooltip will be shown for RadVirtualGrid cells.

C#
public bool ShowCellToolTip { get; set; }

Gets or sets a value that indicates whether distinct filters are visible.

C#
public bool ShowDistinctFilters { get; set; }

Gets or sets a value that indicates whether filed filters are visible.

C#
public bool ShowFieldFilters { get; set; }

Gets or sets the headers' background when the respective columns are sorted.

C#
public Brush SortedHeaderBackground { get; set; }

Gets or sets the headers' foreground when the respective columns are sorted.

C#
public Brush SortedHeaderForeground { get; set; }

Gets or sets a value that indicates the background of the sort icon.

C#
public Brush SortIconBackground { get; set; }

Gets or sets the vertical lines' stroke brush.

C#
public Brush VerticalLinesBrush { get; set; }

Methods

Propagates filter descriptor changes.

C#
protected virtual void ApplyFilterDescriptorChanges(ColumnFilterDescriptor filterDescriptor)
Parameters:filterDescriptorColumnFilterDescriptor

Causes the RadVirtualGrid to enter editing mode for a given cell coordinates, unless the data grid is already in editing mode.

C#
public void BeginEdit(int rowIndex, int columnIndex)
Parameters:rowIndexintcolumnIndexint

Causes the RadVirtualGrid to show new row and enter into EditMode.

C#
public void BeginInsert()

Generates FilteredEventArgs and invokes the FilterDescriptorPrepared event.

C#
protected virtual void CallFiltered(IEnumerable<IFilterDescriptor> added, IEnumerable<IFilterDescriptor> removed, int columnIndex)
Parameters:addedIEnumerable<IFilterDescriptor>removedIEnumerable<IFilterDescriptor>columnIndexint

Generates FilteringEventArgs and invokes the FilterDescriptorPreparing event.

C#
protected virtual bool CallFiltering(IEnumerable<IFilterDescriptor> added, IEnumerable<IFilterDescriptor> removed, int columnIndex)
Parameters:addedIEnumerable<IFilterDescriptor>removedIEnumerable<IFilterDescriptor>columnIndexintReturns:

bool

Causes the data grid to cancel the current edit, restore the original value, and exit editing mode.

C#
public void CancelEdit()

Clears all existing column filters.

C#
public virtual void ClearColumnFilters()

Clears the filter descriptors for the given column and resets its filtering control.

C#
public virtual void ClearFiltersForColumn(int columnIndex)
Parameters:columnIndexint

Closes the filtering UI.

C#
public void CloseFilteringControl()

Commits the edit.

C#
public void CommitEdit()

Copies RadVirtualGrid selected cells to clipboard.

C#
public void CopyToClipboard()

Executes all pending commands in a sequence.

C#
public void ExecutePendingCommand()

Invokes the filtering UI for a specific column.

C#
public void FilterColumn(int columnIndex)
Parameters:columnIndexint

Set column width to be as large as the biggest cell's content, if the MeasureTextOnRender property is set to True.

C#
public double FitColumnWidthToContent(int columnIndex)
Parameters:columnIndexintReturns:

double

The calculated column width, if the MeasureTextOnRender property is set to True; otherwise, 0.0.

Retrieves the list of available FilterOperators for a given type.

C#
protected virtual List<FilterOperator> GetAvailableOperatorsForType(Type dataType)
Parameters:dataTypeTypeReturns:

List<FilterOperator>

Returns the index of a column for a given mouse position.

C#
public int GetColumnIndexAtMousePosition(CanvasInputBorder canvasInputBorder)
Parameters:canvasInputBorderCanvasInputBorderReturns:

int

Gets the ColumnFilterDescriptor for a specific column.

C#
public ColumnFilterDescriptor GetFilterDescriptorForColumn(int columnIndex)
Parameters:columnIndexintReturns:

ColumnFilterDescriptor

Gets the FilteringControl for a specific column.

C#
public FilteringControl GetFilteringControlForColumn(int columnIndex)
Parameters:columnIndexintReturns:

FilteringControl

Returns the index of a row for a given mouse position.

C#
public int GetRowIndexAtMousePosition(CanvasInputBorder canvasInputBorder)
Parameters:canvasInputBorderCanvasInputBorderReturns:

int

Gets the ColumnSortDescriptor for a specific column.

C#
public ColumnSortDescriptor GetSortDescriptorForColumn(int columnIndex)
Parameters:columnIndexintReturns:

ColumnSortDescriptor

Increases the table capacity by adding a column on the given index.

C#
public void InsertNewColumnAtIndex(int index)
Parameters:indexint

Increases the table capacity by adding a row on the given index.

C#
public void InsertNewRowAtIndex(int index)
Parameters:indexint

When overridden in a derived class, is invoked whenever application code or internal processes call .

C#
public override void OnApplyTemplate()

Returns an automation peer for RadVirtualGrid.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Invoked DataProvider.DistinctValuesLoading if DataProvider is available, or raises DistinctValuesLoading instead.

C#
protected virtual void OnDistinctValuesLoading(DistinctValuesLoadingEventArgs e)
Parameters:eDistinctValuesLoadingEventArgs
C#
protected virtual void OnFieldFilterEditorCreated(FieldFilterEditorCreatedEventArgs args)
Parameters:argsFieldFilterEditorCreatedEventArgs

Invokes the FilterDescriptorPrepared event.

C#
protected virtual void OnFiltered(FilteredEventArgs e)
Parameters:eFilteredEventArgs

Invokes the FilterDescriptorsPreparing event.

C#
protected virtual void OnFiltering(FilteringEventArgs e)
Parameters:eFilteringEventArgs

Invokes DataProvider.FilterOperatorsLoading if DataProvider is available or raises FilterOperatorsLoading instead.

C#
protected void OnFilterOperatorsLoading(FilterOperatorsLoadingEventArgs e)
Parameters:eFilterOperatorsLoadingEventArgs

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Occurs when KeyDown event is raised.

C#
protected override void OnPreviewKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs

Raises the SelectedCellsChangingEvent event.

C#
protected virtual void OnSelectedCellsChanging(VirtualGridSelectedCellsChangingEventArgs args)
Parameters:argsVirtualGridSelectedCellsChangingEventArgs

The VirtualGridSelectedCellsChangingEventArgs instance containing the event data.

Invokes DataProvider.SortDescriptorPreparing if DataProvider is present or invokes the SortDescriptorPreparing event instead.

C#
protected virtual void OnSorted(SortedEventArgs e)
Parameters:eSortedEventArgs

Invokes DataProvider.SortDescriptorPreparing if DataProvider is present or invokes the SortDescriptorPreparing event instead.

C#
protected virtual void OnSorting(SortingEventArgs e)
Parameters:eSortingEventArgs

Executed when text has been input.

C#
protected override void OnTextInput(TextCompositionEventArgs e)
Parameters:eTextCompositionEventArgs

Event args.

Pins the column left.

C#
public void PinColumnLeft(int columnIndex)
Parameters:columnIndexint

Pins the column right.

C#
public void PinColumnRight(int columnIndex)
Parameters:columnIndexint

Pins the row bottom.

C#
public void PinRowBottom(int rowIndex)
Parameters:rowIndexint

Pins the row top.

C#
public void PinRowTop(int rowIndex)
Parameters:rowIndexint

Updates VirtualGrid with the given value. It also needs to be persisted in the data source.

C#
public void PushCellValue(int rowIndex, int columnIndex, object value)
Parameters:rowIndexintcolumnIndexintvalueobject

Reduces the table capacity by removing a column on the given index.

C#
public void RemoveColumnAtIndex(int index)
Parameters:indexint

Reduces the table capacity by removing a row on the given index.

C#
public void RemoveRowAtIndex(int index)
Parameters:indexint

Resets the control to its initial visual state.

C#
public void Reset()

Resets the control to an initial visual state with the given row count and column count.

C#
public void Reset(int rowCount, int columnCount)
Parameters:rowCountintcolumnCountint

Resets the theme.

C#
public void ResetTheme()

Scrolls the column with the specified index into view in an asynchronous manner.

C#
public void ScrollColumnIndexIntoViewAsync(int columnIndex, Action scrollFinishedCallback, Action scrollFailedCallback)
Parameters:columnIndexint

The column index to scroll into view.

scrollFinishedCallbackAction

The method to execute when scrolling has finished.

scrollFailedCallbackAction

The method to execute when scrolling has failed.

Remarks:

Since this method is asynchronous, calling it will return immediately. If you need to perform a certain action once the scrolling is done use the scrollFinishedCallback parameter to pass in a method to execute. The FrameworkElement parameter of this method will be the column that was just scrolled.

Scrolls the row with the specified index and column into view in an asynchronous manner.

C#
public void ScrollIndexIntoViewAsync(int rowIndex, int columnIndex, Action scrollFinishedCallback, Action scrollFailedCallback)
Parameters:rowIndexint

The row index to scroll into view.

columnIndexint

The column index to scroll into view.

scrollFinishedCallbackAction

The method to execute when scrolling has finished.

scrollFailedCallbackAction

The method to execute when scrolling has failed.

Remarks:

Since this method is asynchronous, calling it will return immediately. If you need to perform a certain action once the scrolling is done use the scrollFinishedCallback method.

Scrolls the row with the specified index into view in an asynchronous manner.

C#
public void ScrollRowIndexIntoViewAsync(int rowIndex, Action scrollFinishedCallback, Action scrollFailedCallback)
Parameters:rowIndexint

The row index to scroll into view.

scrollFinishedCallbackAction

The method to execute when scrolling has finished.

scrollFailedCallbackAction

The method to execute when scrolling has failed.

Remarks:

Since this method is asynchronous, calling it will return immediately. If you need to perform a certain action once the scrolling is done use the scrollFinishedCallback parameter to pass in a method to execute. The FrameworkElement parameter of this method will be the row that was just scrolled.

Selects all the items as defined by the SelectionMode and SelectionUnit

C#
public void SelectAll()

Selects specified region of cells.

C#
public void SelectCellRegion(CellRegion cellRegion)
Parameters:cellRegionCellRegion

Selects specified region of cells.

C#
public void SelectCellRegion(IEnumerable<CellRegion> cellRegions)
Parameters:cellRegionsIEnumerable<CellRegion>

Invokes the sorting UI for a specific column.

C#
public void SortColumn(int columnIndex)
Parameters:columnIndexint

Selects the given index if it is not selected, or deselects if it is already selected.

C#
public void ToggleIndexSelection(int index)
Parameters:indexint

Unpins the column with the given index.

C#
public void UnpinColumn(int columnIndex)
Parameters:columnIndexint

Unpins the row with the given index.

C#
public void UnpinRow(int rowIndex)
Parameters:rowIndexint

Clears the current selection state.

C#
public void UnselectAll()

Deselects specified region of cells.

C#
public void UnselectCellRegion(CellRegion cellRegion)
Parameters:cellRegionCellRegion

Deselects specified region of cells.

C#
public void UnselectCellRegion(IEnumerable<CellRegion> cellRegions)
Parameters:cellRegionsIEnumerable<CellRegion>

Update on the row and column headers' UI, taking into account visual properties changes.

C#
public void UpdateHeadersUI()

Update on the UI, taking into account visual properties changes.

C#
public void UpdateUI()

Events

Occurs when a cell will be visualized. Setting the arguments' properties will visually modify the cell.

C#
public event EventHandler<CellDecorationEventArgs> CellDecorationsNeeded

Occurs when an edit operation is finished.

C#
public event EventHandler<CellEditEndedEventArgs> CellEditEnded

Occurs when RadVirtualGrid fetches the DataTemplate for a given cell.

C#
public event EventHandler<CellTemplateEventArgs> CellTemplateNeeded

Occurs when RadVirtualGrid fetches the value for a cell's tooltip.

C#
public event EventHandler<VirtualGridCellToolTipEventArgs> CellToolTipNeeded

Occurs when RadVirtualGrid fetches the value for a cell.

C#
public event EventHandler<CellValueEventArgs> CellValueNeeded

Occurs after the selected cells of the RadVirtualGrid were copied to the Clipboard.

C#
public event EventHandler<RadRoutedEventArgs> Copied

Occurs before the selected cells of the RadVirtualGrid are copied to the Clipboard.

C#
public event EventHandler<VirtualGridClipboardEventArgs> Copying

Occurs before a cell is copied to the Clipboard.

C#
public event EventHandler<VirtualGridCellClipboardEventArgs> CopyingCellClipboardContent

Occurs when the current cell is changed.

C#
public event EventHandler<VirtualGridCurrentCellChangedEventArgs> CurrentCellChanged

Occurs when data-related information for a given column is needed.

C#
public event EventHandler<DataMemberEventArgs> DataMemberNeeded

Occurs when VirtualGrid's selected indexes are deleted.

C#
public event EventHandler<VirtualGridDeletedEventArgs> Deleted

Occurs when deleting the VirtualGrid's selected indexes.

C#
public event EventHandler<VirtualGridDeletingEventArgs> Deleting

Occurs when distinct values are being loaded.

C#
public event EventHandler<DistinctValuesLoadingEventArgs> DistinctValuesLoading

Occurs when a cell is edited and the editor property value gets changed.

C#
public event EventHandler<EditorNeededEventArgs> EditorNeeded

Occurs when a cell is edited and an editor is required.

C#
public event EventHandler<CellValueEventArgs> EditorValueChanged

Occurs when filed filter editor is created.

C#
public event EventHandler<FieldFilterEditorCreatedEventArgs> FieldFilterEditorCreated

Occurs when filter descriptors for the filtered column are ready and filtering operation will be executed.

C#
public event EventHandler<FilteredEventArgs> FilterDescriptorsPrepared

Occurs when filter descriptors for the filtered column are being prepared.

C#
public event EventHandler<FilteringEventArgs> FilterDescriptorsPreparing

Occurs when filter operators are being loaded.

C#
public event EventHandler<FilterOperatorsLoadingEventArgs> FilterOperatorsLoading

Occurs when a header cell will be visualized. Setting the arguments' properties will visually modify the header cell.

C#
public event EventHandler<HeaderCellDecorationEventArgs> HeaderCellDecorationsNeeded

Occurs when size for a header cell is needed.

C#
public event EventHandler<HeaderSizeEventArgs> HeaderSizeNeeded

Occurs when header cell values is needed.

C#
public event EventHandler<HeaderValueEventArgs> HeaderValueNeeded

Occurs when the set of brushes that will be used for background customization is needed.

C#
public event EventHandler<OverlayBrushesEventArgs> OverlayBrushesNeeded

Event that fires when the SelectedCells collection is changed.

C#
public event EventHandler<VirtualGridSelectedCellsChangedEventArgs> SelectedCellsChanged

Event that fires when the SelectedCells collection is about to change.

C#
public event EventHandler<VirtualGridSelectedCellsChangingEventArgs> SelectedCellsChanging

SelectionChanged

SelectionChangedEventHandler

Event that fires when the selection of RadVirtualGrid is changed.

C#
public event SelectionChangedEventHandler SelectionChanged

Occurs when sort descriptors for the sorted column is ready and sorting operation will be executed.

C#
public event EventHandler<SortedEventArgs> SortDescriptorPrepared

Occurs when sort descriptor for the sorted column is being prepared.

C#
public event EventHandler<SortingEventArgs> SortDescriptorPreparing
In this article
DefinitionConstructorsRadVirtualGrid()FieldsActionOnLostFocusPropertyAlternationBrushPropertyCanUserDeleteRowsPropertyCanUserEditPropertyCanUserFilterColumnsPropertyCanUserInsertRowsPropertyCanUserResizeColumnsPropertyCanUserResizeRowsPropertyCanUserSelectPropertyCanUserSortColumnsPropertyCellPaddingPropertyCellTextAlignmentPropertyCellToolTipTemplatePropertyClipboardCopyModePropertyColumnAlternationCountPropertyColumnHeaderBackgroundPropertyColumnHeaderForegroundPropertyColumnHeaderHeightPropertyColumnHeaderLinesBrushPropertyColumnWidthPropertyCopiedEventCopyingCellClipboardContentEventCopyingEventCurrentCellStrokePropertyDataProviderPropertyEditTriggersPropertyFilterIconBackgroundFilteredPropertyFilterIconBackgroundPropertyHorizontalLinesBrushPropertyInitialColumnCountPropertyInitialRowCountPropertyIsFilterablePropertyIsFilteringDeferredPropertyIsSortablePropertyLinesVisibilityPropertyMeasureTextOnRenderPropertyPinnedCellBackgroundPropertyPinnedCellForegroundPropertyPinnedRowHeaderBackgroundPropertyRowAlternationCountPropertyRowHeaderBackgroundPropertyRowHeaderForegroundPropertyRowHeaderLinesBrushPropertyRowHeaderWidthPropertyRowHeightPropertySelectedIndexPropertySelectionBrushPropertySelectionChangedEventSelectionModePropertySelectionUnitPropertyShouldCreateAutomationPeerPropertyShowCellToolTipPropertyShowDistinctFiltersPropertyShowFieldFiltersPropertySortedHeaderBackgroundPropertySortedHeaderForegroundPropertySortIconBackgroundPropertyVerticalLinesBrushPropertyPropertiesActionOnLostFocusAlternationBrushCanUserDeleteRowsCanUserEditCanUserFilterColumnsCanUserInsertRowsCanUserResizeColumnsCanUserResizeRowsCanUserSelectCanUserSortColumnsCellPaddingCellTextAlignmentCellToolTipTemplateClipboardCopyModeColumnAlternationCountColumnHeaderBackgroundColumnHeaderForegroundColumnHeaderHeightColumnHeaderLinesBrushColumnWidthCurrentCellInfoCurrentCellStrokeDataProviderEditTriggersFilterIconBackgroundFilterIconBackgroundFilteredHorizontalLinesBrushInitialColumnCountInitialRowCountIsFilterableIsFilteringDeferredIsSortableKeyboardCommandProviderLinesVisibilityMeasureTextOnRenderPendingCommandsPinnedCellBackgroundPinnedCellForegroundPinnedRowHeaderBackgroundRowAlternationCountRowHeaderBackgroundRowHeaderForegroundRowHeaderLinesBrushRowHeaderWidthRowHeightSelectedCellsSelectedIndexSelectedIndexesSelectionBrushSelectionModeSelectionUnitShouldCreateAutomationPeerShowCellToolTipShowDistinctFiltersShowFieldFiltersSortedHeaderBackgroundSortedHeaderForegroundSortIconBackgroundVerticalLinesBrushMethodsApplyFilterDescriptorChanges(ColumnFilterDescriptor)BeginEdit(int, int)BeginInsert()CallFiltered(IEnumerable<IFilterDescriptor>, IEnumerable<IFilterDescriptor>, int)CallFiltering(IEnumerable<IFilterDescriptor>, IEnumerable<IFilterDescriptor>, int)CancelEdit()ClearColumnFilters()ClearFiltersForColumn(int)CloseFilteringControl()CommitEdit()CopyToClipboard()ExecutePendingCommand()FilterColumn(int)FitColumnWidthToContent(int)GetAvailableOperatorsForType(Type)GetColumnIndexAtMousePosition(CanvasInputBorder)GetFilterDescriptorForColumn(int)GetFilteringControlForColumn(int)GetRowIndexAtMousePosition(CanvasInputBorder)GetSortDescriptorForColumn(int)InsertNewColumnAtIndex(int)InsertNewRowAtIndex(int)OnApplyTemplate()OnCreateAutomationPeer()OnDistinctValuesLoading(DistinctValuesLoadingEventArgs)OnFieldFilterEditorCreated(FieldFilterEditorCreatedEventArgs)OnFiltered(FilteredEventArgs)OnFiltering(FilteringEventArgs)OnFilterOperatorsLoading(FilterOperatorsLoadingEventArgs)OnInitialized(EventArgs)OnPreviewKeyDown(KeyEventArgs)OnSelectedCellsChanging(VirtualGridSelectedCellsChangingEventArgs)OnSorted(SortedEventArgs)OnSorting(SortingEventArgs)OnTextInput(TextCompositionEventArgs)PinColumnLeft(int)PinColumnRight(int)PinRowBottom(int)PinRowTop(int)PushCellValue(int, int, object)RemoveColumnAtIndex(int)RemoveRowAtIndex(int)Reset()Reset(int, int)ResetTheme()ScrollColumnIndexIntoViewAsync(int, Action, Action)ScrollIndexIntoViewAsync(int, int, Action, Action)ScrollRowIndexIntoViewAsync(int, Action, Action)SelectAll()SelectCellRegion(CellRegion)SelectCellRegion(IEnumerable<CellRegion>)SortColumn(int)ToggleIndexSelection(int)UnpinColumn(int)UnpinRow(int)UnselectAll()UnselectCellRegion(CellRegion)UnselectCellRegion(IEnumerable<CellRegion>)UpdateHeadersUI()UpdateUI()EventsCellDecorationsNeededCellEditEndedCellTemplateNeededCellToolTipNeededCellValueNeededCopiedCopyingCopyingCellClipboardContentCurrentCellChangedDataMemberNeededDeletedDeletingDistinctValuesLoadingEditorNeededEditorValueChangedFieldFilterEditorCreatedFilterDescriptorsPreparedFilterDescriptorsPreparingFilterOperatorsLoadingHeaderCellDecorationsNeededHeaderSizeNeededHeaderValueNeededOverlayBrushesNeededSelectedCellsChangedSelectedCellsChangingSelectionChangedSortDescriptorPreparedSortDescriptorPreparing
Not finding the help you need?
Contact Support