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

GridView.ShowEditForm() Method

Opens an Edit Form for the focused row based on the Edit Form type specified in the GridOptionsBehavior.EditingMode property.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v19.2.dll

Declaration

public virtual void ShowEditForm()

Remarks

The ShowEditForm method opens an Edit Form for the focused row. This method is in effect if the GridOptionsBehavior.EditingMode property is set to a value that enables data editing via an Edit Form.

If the GridOptionsBehavior.EditingMode property is set to GridEditingMode.EditFormInplace or GridEditingMode.EditFormInplaceHideCurrentRow, an Edit Form is displayed as an inline panel. If it is set to GridEditingMode.EditForm, an Edit Form is displayed as a separate modal window.

To display an Edit Form as a separate modal window, call the GridView.ShowPopupEditForm method. To display an Edit Form as an inline panel, call the GridView.ShowInplaceEditForm method.

Note

If there is insufficient space in the GridView to display an Edit Form as an inline panel, it is forcibly displayed as a separate modal window.

Note

If the GridOptionsBehavior.EditingMode property is set to GridEditingMode.Inplace or EditorShowMode.Default, the GridView.ShowInplaceEditForm, GridView.ShowPopupEditForm and GridView.ShowEditForm methods are not in effect.

See Also