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.v20.1.dll

Declaration

public virtual void ShowEditForm()
Public Overridable Sub 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.

See Also