Skip to main content
Tab

GridViewTemplateReplacementType Enum

Lists values that specify which controls are displayed by the ASPxGridViewTemplateReplacement object.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public enum GridViewTemplateReplacementType

Members

Name Description
EditFormContent

An entire edit form with edit cells and buttons (available in the edit form template).

EditFormCancelButton

The Cancel button (available in the edit form template).

EditFormUpdateButton

The Update button (available in the edit form template).

EditFormEditors

An edit form with edit cells and without buttons (available in the edit form template).

EditFormCellEditor

An edit cell (available in the edit form template).

Pager

The Pager (available in the pager bar template).

Related API Members

The following properties accept/return GridViewTemplateReplacementType values:

Remarks

Template replacements allow you to add standard grid elements (edit cells, buttons, or a pager) to the EditForm or PagerBar templates.

To create a template replacement, add an object of the ASPxGridViewTemplateReplacement class to a template and set the ReplacementType property to a GridViewTemplateReplacementType enumeration field value.

<EditForm>
    <div style="padding: 4px">
        <dx:ASPxGridViewTemplateReplacement ID="TemplateReplacementContent" runat="server"
            ReplacementType="EditFormContent" />
        <br/>
        <dx:ASPxMemo ID="ASPxMemo1" runat="server" Height="70px" Width="100%" Text='<%# Eval("Notes")%>'>
        </dx:ASPxMemo> 
    </div>   
</EditForm>

View Example: Grid View for ASP.NET Web Forms - How to emulate command button functionality

See Also