Back to Devexpress

ASPxGridViewTemplateReplacement.ReplacementType Property

aspnet-devexpress-dot-web-dot-aspxgridviewtemplatereplacement.md

latest3.8 KB
Original Source

ASPxGridViewTemplateReplacement.ReplacementType Property

Specifies a control that the ASPxGridViewTemplateReplacement element displays.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public GridViewTemplateReplacementType ReplacementType { get; set; }
vb
Public Property ReplacementType As GridViewTemplateReplacementType

Property Value

TypeDescription
GridViewTemplateReplacementType

The replacement element type.

|

Available values:

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

aspx
<EditForm>
    <div style="padding: 4px">
        <dx:ASPxGridViewTemplateReplacement ID="TemplateReplacementContent" runat="server"
            ReplacementType="EditFormContent" />
        

        <dx:ASPxMemo ID="ASPxMemo1" runat="server" Height="70px" Width="100%" Text='<%# Eval("Notes")%>'>
        </dx:ASPxMemo> 
    </div>   
</EditForm>

See Also

ASPxGridViewTemplateReplacement Class

ASPxGridViewTemplateReplacement Members

DevExpress.Web Namespace