A newer version of this page is available. Switch to the current version.

ShowingEditorEventArgs Class

Provides data for the GridViewBase.ShowingEditor event.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v19.1.dll

Declaration

public class ShowingEditorEventArgs :
    ShowingEditorEventArgsBase
Public Class ShowingEditorEventArgs
    Inherits ShowingEditorEventArgsBase

Remarks

To learn more, see In-place Editors.

Examples

This example shows how to prevent end-users from editing values of individual cells. In this example, end-users are not allowed to change a product's Price, if the product is discontinued.

private void view_ShowingEditor(object sender, ShowingEditorEventArgs e) {
    if (e.Column.FieldName != "UnitPrice") return;
    e.Cancel = (bool)grid.GetCellValue(e.RowHandle, "Discontinued");
}
See Also