aspnet-devexpress-dot-web-dot-aspxgridviewtemplatereplacement.md
Specifies a control that the ASPxGridViewTemplateReplacement element displays.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public GridViewTemplateReplacementType ReplacementType { get; set; }
Public Property ReplacementType As GridViewTemplateReplacementType
| 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).
|
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:
EditFormContentEditFormEditorsEditFormCellEditorEditFormUpdateButtonEditFormUpdateButtonThe PagerBar template supports the following ReplacementType property value:
PagerTo 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" />
<dx:ASPxMemo ID="ASPxMemo1" runat="server" Height="70px" Width="100%" Text='<%# Eval("Notes")%>'>
</dx:ASPxMemo>
</div>
</EditForm>
See Also
ASPxGridViewTemplateReplacement Class