GridViewColumnLayoutItem.Template Property
Gets or sets a template used to display the content of a specific column layout item.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Default | Description |
---|---|---|
ITemplate | null | An object supporting the ITemplate interface which contains the template used for displaying the item’s content. |
Remarks
This property has no effect within an adaptive layout, i.e., when you specify a template for an ASPxGridViewAdaptivitySettings.AdaptiveDetailLayoutProperties item.
Example
<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