BarEditItem.ShowingEditor Event
Occurs before activating an editor.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.2.dll
Declaration
Event Data
The ShowingEditor event's data class is ItemCancelEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Cancel | Gets or sets a value indicating whether the editor within an item is read only. |
Item | Gets the BarItem whose link was clicked. Inherited from ItemClickEventArgs. |
Link | Gets the clicked BarItemLink. Inherited from ItemClickEventArgs. |
Example
The following code demonstrates the use of the ShowingEditor event handler which prevents an editor from being activated:
using DevExpress.XtraBars;
private void eItem1_ShowingEditor(object sender, ItemCancelEventArgs e) {
e.Cancel = true;
}
See Also