aspnet-devexpress-dot-web-904f5b90.md
Lists values that specify which controls are displayed by the ASPxGridViewTemplateReplacement object.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public enum GridViewTemplateReplacementType
Public Enum GridViewTemplateReplacementType
| 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).
|
The following properties accept/return GridViewTemplateReplacementType values:
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" />
<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