Back to Devexpress

ASPxGridView.EditFormLayoutProperties Property

aspnet-devexpress-dot-web-dot-aspxgridview-d07669ff.md

latest2.9 KB
Original Source

ASPxGridView.EditFormLayoutProperties Property

Provides access to the edit form layout settings.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(null)]
public GridViewFormLayoutProperties EditFormLayoutProperties { get; }
vb
<DefaultValue(Nothing)>
Public ReadOnly Property EditFormLayoutProperties As GridViewFormLayoutProperties

Property Value

TypeDefaultDescription
GridViewFormLayoutPropertiesnull

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.

aspx
<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

UseFormLayout

ASPxGridView Class

ASPxGridView Members

DevExpress.Web Namespace