Skip to main content
A newer version of this page is available. .

ShowingEditorEventArgs Class

Provides data for the GridViewBase.ShowingEditor event.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v17.2.dll

Declaration

public class ShowingEditorEventArgs :
    ShowingEditorEventArgsBase

Remarks

To learn more, see Showing and Hiding Editors.

Example

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");
}

The following code snippets (auto-collected from DevExpress Examples) contain references to the ShowingEditorEventArgs class.

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.

See Also