BootstrapGridViewTemplateReplacement Class

A server control used to display default contents of a Grid View's Edit Form and Pager within the Edit Form Template and Pager Template respectively.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v19.2.dll

Declaration

[ToolboxTabName("DX.19.2: Bootstrap Controls")]
public class BootstrapGridViewTemplateReplacement :
    ASPxGridViewTemplateReplacement
<ToolboxTabName("DX.19.2: Bootstrap Controls")>
Public Class BootstrapGridViewTemplateReplacement
    Inherits ASPxGridViewTemplateReplacement

Remarks

The Bootstrap Grid View enables you to provide any possible layout for its Edit Form and Pager using the GridViewTemplates.EditForm and GridViewTemplates.PagerBar templates respectively.

The BootstrapGridViewTemplateReplacement control is designed only to display the regular Edit Form and Pager contents (edit cells, Update and Cancel buttons, pager) within a template.

...
<Templates>
    <EditForm>
        <dx:BootstrapPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0">
            <TabPages>
                <dx:BootstrapTabPage>
                    <ContentCollection>
                        <dx:ContentControl runat="server">
                            <dx:BootstrapGridViewTemplateReplacement runat="server" ID="tr"
                                ReplacementType="EditFormEditors" />
                        </dx:ContentControl>
                    </ContentCollection>
                </dx:BootstrapTabPage>
            </TabPages>
        </dx:BootstrapPageControl>
        <dx:BootstrapGridViewTemplateReplacement runat="server" id="tr2"
          replacementtype="EditFormUpdateButton" />
        <dx:BootstrapGridViewTemplateReplacement runat="server" id="tr3"
          replacementtype="EditFormCancelButton" />
    </EditForm>
</Templates>

Use the ASPxGridViewTemplateReplacement.ReplacementType property to specify which controls are displayed by the control.

Inheritance

Object
Control
WebControl
ASPxGridViewTemplateReplacement
BootstrapGridViewTemplateReplacement
See Also