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

ColumnLayoutItem Class

Serves as a base for classes that represent a layout item within the edit form of grid-like controls.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

public abstract class ColumnLayoutItem :
    ContentPlaceholderLayoutItem

Remarks

The following example illustrates how to use the GridViewColumnLayoutItem object (the ColumnLayoutItem object’s descendant) to customize the edit form layout in the grid.

<dx:ASPxGridView ID="grid" runat="server" ...>
    <EditFormLayoutProperties ColCount="2">
        <Items>
            <dx:GridViewLayoutGroup ColCount="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>

Online Demo

ASPxGridView - Edit Form Layout

See Also