wpf-devexpress-dot-xpf-dot-grid-dot-roweventargs.md
Gets the processed row’s handle.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public int RowHandle { get; protected set; }
Public Property RowHandle As Integer
| Type | Description |
|---|---|
| Int32 |
An integer value that specifies the processed row’s handle.
|
For detailed information on how to identify rows by their handles and visible indices, see Identifying Rows and Cards.
The following code snippets (auto-collected from DevExpress Examples) contain references to the RowHandle 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-change-background-color-for-modified-cells/CS/HighlightChangedCellBehavior.cs#L47
originalValues[key] = e.OldValue;
AssociatedObject.SetCellValue(e.RowHandle, fieldName, isModified);
}
wpf-grid-select-child-rows-in-groups-on-click/CS/GridGroupSelect/GroupChildSelector.cs#L26
grid.BeginSelection();
SelectChild(grid, e.RowHandle);
grid.EndSelection();
void OnInvalidRowException(object sender, InvalidRowExceptionEventArgs e) {
if(e.RowHandle == GridControl.NewItemRowHandle) {
e.ErrorText = "Please enter the Product Name.";
wpf-data-grid-specify-edit-form-settings/CS/DefineEditFormSettings_CodeBehind/MainWindow.xaml.cs#L49
private void OnRowEditStarting(object sender, RowEditStartingEventArgs e) {
if(Equals(e.RowHandle, DataControlBase.NewItemRowHandle)) {
e.CellEditors[0].Value = grid.VisibleRowCount + 1;
wpf-data-grid-extend-crud-operations/CS/Undo/UndoCRUDOperationsBehavior.cs#L92
void OnEditingStarted(object sender, RowEditStartedEventArgs e) {
if(e.RowHandle != DataControlBase.NewItemRowHandle) {
editingCache = CopyOperationsSupporter.Clone(e.Row);
wpf-data-grid-change-background-color-for-modified-cells/VB/HighlightChangedCellBehavior.vb#L68
Me.AssociatedObject.SetCellValue(e.RowHandle, fieldName, isModified)
End If
wpf-grid-select-child-rows-in-groups-on-click/VB/GridGroupSelect/GroupChildSelector.vb#L30
grid.BeginSelection()
SelectChild(grid, e.RowHandle)
grid.EndSelection()
Private Sub OnInvalidRowException(ByVal sender As Object, ByVal e As InvalidRowExceptionEventArgs)
If e.RowHandle = DataControlBase.NewItemRowHandle Then
e.ErrorText = "Please enter the Product Name."
wpf-data-grid-specify-edit-form-settings/VB/DefineEditFormSettings_CodeBehind/MainWindow.xaml.vb#L92
Private Sub OnRowEditStarting(ByVal sender As Object, ByVal e As RowEditStartingEventArgs)
If Equals(e.RowHandle, DataControlBase.NewItemRowHandle) Then
e.CellEditors(0).Value = Me.grid.VisibleRowCount + 1
wpf-data-grid-extend-crud-operations/VB/Undo/UndoCRUDOperationsBehavior.vb#L121
Private Sub OnEditingStarted(ByVal sender As Object, ByVal e As RowEditStartedEventArgs)
If e.RowHandle <> DataControlBase.NewItemRowHandle Then
editingCache = CopyOperationsSupporter.Clone(e.Row)
See Also