Skip to main content
Tab

ASPxGridViewTemplateReplacement.ReplacementType Property

Specifies a control that the ASPxGridViewTemplateReplacement element displays.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public GridViewTemplateReplacementType ReplacementType { get; set; }

Property Value

Type Description
GridViewTemplateReplacementType

The replacement element type.

Available values:

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).

Remarks

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

The EditForm template supports the following ReplacementType property values:

  • EditFormContent
  • EditFormEditors
  • EditFormCellEditor
  • EditFormUpdateButton
  • EditFormUpdateButton

The PagerBar template supports the following ReplacementType property value:

  • Pager

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>
See Also