All docs
V19.2
21.1 (EAP/Beta)
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
Tab
A newer version of this page is available. Switch to the current version.

ASPxGridViewEditFormLayoutEventArgs Class

Provides data for the EditFormLayoutCreated event

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

public class ASPxGridViewEditFormLayoutEventArgs :
    ASPxGridItemEventArgs
Public Class ASPxGridViewEditFormLayoutEventArgs
    Inherits ASPxGridItemEventArgs

Remarks

Use the ASPxGridViewEditFormLayoutEventArgs class to access the EditFormLayoutCreated event's arguments.

In the following example, the FindLayoutItemOrGroup(String) method gets a layout group whose name is "DismissalInformation" and makes it visible on the client if a user fills the "Dismissal Date" field.

<dx:ASPxGridView ID="grid" runat="server" OnEditFormLayoutCreated="grid_EditFormLayoutCreated" >
    // ...
    <EditFormLayoutProperties >
        <Items>
            <dx:GridViewTabbedLayoutGroup>
                <Items>
                    <dx:GridViewLayoutGroup ColumnCount="2" Caption="Employee Information">
                        // ...
                    </dx:GridViewLayoutGroup>
                    <dx:GridViewLayoutGroup Caption="Dismissal Information" Name="DismissalInformation">
                        <Items>
                            // ...
                        </Items>
                    </dx:GridViewLayoutGroup>
                </Items>
            </dx:GridViewTabbedLayoutGroup>
        </Items>
    </EditFormLayoutProperties>
</dx:ASPxGridView>
protected void grid_EditFormLayoutCreated(object sender, DevExpress.Web.ASPxGridViewEditFormLayoutEventArgs e) {
    ASPxGridView gridView = sender as ASPxGridView;
    LayoutGroup layoutGroupDismissal = (LayoutGrou