Back to Devexpress

NavigatorButtonClickEventArgs.Handled Property

windowsforms-devexpress-dot-xtraeditors-dot-navigatorbuttonclickeventargs-ef623043.md

latest4.6 KB
Original Source

NavigatorButtonClickEventArgs.Handled Property

Gets or sets whether you have handled this event and no default action is required.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public bool Handled { get; set; }
vb
Public Property Handled As Boolean

Property Value

TypeDescription
Boolean

true to prohibit the button’s default action; false to perform the button’s default action after your event handler is executed.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Handled 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.

winforms-grid-data-navigator-custom-button/CS/CustomButton/Form1.cs#L35

csharp
MessageBox.Show("Selected data has been copied to the Clipboard");
    e.Handled = true;
}

winforms-grid-linq-to-sql-master-detail/CS/LinqWithEditing/Form1.cs#L49

csharp
}
    e.Handled = true;
}

winforms-grid-sql-pagination/CS/DxSample/MainForm.cs#L48

csharp
if (e.Button.ButtonType != NavigatorButtonType.Custom) return;
e.Handled = true;
int offset = (int)DataAdapter.SelectCommand.Parameters["@offset"].Value;

XPO_how-to-track-changes-made-to-persistent-objects-and-write-them-into-a-separate-table-e2419/CS/Q149895/Form1.cs#L23

csharp
((XPBaseObject)((GridView)gridControl1.FocusedView).GetFocusedRow()).Delete();
    e.Handled = true;
}

XPO_how-to-track-changes-made-to-persistent-objects-and-write-them-into-a-separate-table-e2419/VB/Q149895/Form1.vb#L25

vb
CType(CType(gridControl1.FocusedView, GridView).GetFocusedRow(), XPBaseObject).Delete()
    e.Handled = True
End If

winforms-grid-data-navigator-custom-button/VB/CustomButton/Form1.vb#L34

vb
MessageBox.Show("Selected data has been copied to the Clipboard")
    e.Handled = True
End If

winforms-grid-linq-to-sql-master-detail/VB/LinqWithEditing/Form1.vb#L49

vb
End If
    e.Handled = True
End If

winforms-grid-sql-pagination/VB/DxSample/MainForm.vb#L56

vb
End If
e.Handled = True
Dim offset As Integer = DirectCast(DataAdapter.SelectCommand.Parameters("@offset").Value, Integer)

See Also

Button

NavigatorButtonClickEventArgs Class

NavigatorButtonClickEventArgs Members

DevExpress.XtraEditors Namespace