Skip to main content
Tab

ASPxGridView.EditFormLayoutProperties Property

Provides access to the edit form layout settings.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(null)]
public GridViewFormLayoutProperties EditFormLayoutProperties { get; }

Property Value

Type Default Description
GridViewFormLayoutProperties null

An object that contains the edit form layout settings.

Remarks

The grid uses the built-in ASPxFormLayout control to display the edit form when the ASPxGridViewEditingSettings.UseFormLayout is set to true. In this case, you can use the EditFormLayoutProperties property to access and customize the edit form layout settings.

<dx:ASPxGridView ID="grid" runat="server" ...>
    <EditFormLayoutProperties ColumnCount="2">
        <Items>
            <dx:GridViewLayoutGroup ColumnCount="2" GroupBoxDecoration="None">
                <Items>
                    <!-- ... -->
                    <dx:GridViewColumnLayoutItem ColumnName="Position" Width="100%" />
                    <dx:GridViewColumnLayoutItem Caption="Notes" Width="100%" VerticalAlign="Top">
                        <Template>
                            <dx:ASPxMemo ID="notesMemo" runat="server" Width="100%" Height="253"
                                    Text='<%# Bind("Notes") %>' />
                        </Template>
                    </dx:GridViewColumnLayoutItem>
                </Items>
            </dx:GridViewLayoutGroup>
            <dx:EditModeCommandLayoutItem Width="100%" HorizontalAlign="Right" />
        </Items>
    </EditFormLayoutProperties>
</dx:ASPxGridView>

Run Demo: ASPxGridView - Edit Form Layout

Online Example

View Example: Grid View for ASP.NET Web Forms - How to customize the edit form layout

See Also