Back to Devexpress

DataControlBase.RefreshRow(Int32) Method

wpf-devexpress-dot-xpf-dot-grid-dot-datacontrolbase-dot-refreshrow-x28-system-dot-int32-x29.md

latest3.4 KB
Original Source

DataControlBase.RefreshRow(Int32) Method

Refreshes the specified row.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public void RefreshRow(
    int rowHandle
)
vb
Public Sub RefreshRow(
    rowHandle As Integer
)

Parameters

NameTypeDescription
rowHandleInt32

An integer value which identifies the row.

|

Remarks

The RefreshRow method re-fetches the row (specified by its handle) from the data source. Refer to the following help topic for more information on row handles: Identify Rows and Cards.

The following code snippets (auto-collected from DevExpress Examples) contain references to the RefreshRow(Int32) method.

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-propertygrid-add-an-item-to-a-collection-or-a-dictionary/CS/MainWindow.xaml.cs#L16

csharp
var rowhandle = grid.GetSelectedRowHandles()[0];
    grid.RefreshRow(rowhandle);
}

wpf-data-grid-extend-crud-operations/CS/Undo/UndoCRUDOperationsBehavior.cs#L117

csharp
editingCache = null;
    AssociatedObject.DataControl.RefreshRow(AssociatedObject.DataControl.FindRow(item));
} catch(Exception ex) {

wpf-propertygrid-add-an-item-to-a-collection-or-a-dictionary/VB/MainWindow.xaml.vb#L18

vb
Dim rowhandle = Me.grid.GetSelectedRowHandles()(0)
    Me.grid.RefreshRow(rowhandle)
End Sub

wpf-data-grid-extend-crud-operations/VB/Undo/UndoCRUDOperationsBehavior.vb#L147

vb
editingCache = Nothing
    AssociatedObject.DataControl.RefreshRow(AssociatedObject.DataControl.FindRow(item))
Catch ex As Exception

See Also

RefreshData()

DataControlBase Class

DataControlBase Members

DevExpress.Xpf.Grid Namespace