Back to Devexpress

DataViewCommandsBase.RefreshDataSource Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewcommandsbase-f91bd3bc.md

latest3.0 KB
Original Source

DataViewCommandsBase.RefreshDataSource Property

Refreshes the grid’s ItemsSource.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public ICommand RefreshDataSource { get; }
vb
Public ReadOnly Property RefreshDataSource As ICommand

Property Value

TypeDescription
ICommand

A command that implements the ICommand.

|

Remarks

Corresponding method: DataViewBase.RefreshDataSourceAsync.

The following code snippets (auto-collected from DevExpress Examples) contain references to the RefreshDataSource property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-data-grid-implement-crud-operations/CS/CodeBehind/EFCore/LocalData/MainWindow.xaml#L14

xml
<dxb:ToolBarControl>
    <dxb:BarButtonItem Content="Refresh (F5)" Command="{Binding View.Commands.RefreshDataSource, ElementName=grid}"
                       Glyph="{dx:DXImage SvgImages/Icon Builder/Actions_Refresh.svg}" BarItemDisplayMode="ContentAndGlyph" />

wpf-data-grid-extend-crud-operations/CS/AsyncCRUDOperations/MainWindow.xaml#L15

xml
<dxb:ToolBarControl>
    <dxb:BarButtonItem Content="Refresh (F5)" Command="{Binding View.Commands.RefreshDataSource, ElementName=grid}" Glyph="{dx:DXImage SvgImages/Icon Builder/Actions_Refresh.svg}" BarItemDisplayMode="ContentAndGlyph" />
    <dxb:BarButtonItem Content="Edit (F2)" Command="{Binding View.Commands.EditFocusedRow, ElementName=grid}" Glyph="{dx:DXImage SvgImages/Icon Builder/Actions_Edit.svg}" BarItemDisplayMode="ContentAndGlyph" />

See Also

DataViewCommandsBase Class

DataViewCommandsBase Members

DevExpress.Xpf.Grid Namespace