A newer version of this page is available. Switch to the current version.

GridViewSettings.SetEditFormTemplateContent(String) Method

Allows setting a template for displaying an edit form.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v18.2.dll

Declaration

public void SetEditFormTemplateContent(
    string content
)
Public Sub SetEditFormTemplateContent(
    content As String
)

Parameters

Name Type Description
content String

A string value specifying the template content.

Remarks

Example

@{
    var grid = Html.DevExpress().GridView(settings =>
    {
        ...
        settings.SetEditFormTemplateContent(c =>
        {
            Html.DevExpress().PageControl(pCSettings =>
            {
                pCSettings.Name = "pcSettings" + c.VisibleIndex;
                pCSettings.Width = 500;
                pCSettings.ActiveTabIndex = 0;
                pCSettings.TabPages.Add("Visitor").SetContent(() =>
                {
                    ViewContext.Writer.Write("Content");
                });
            }).Render();
        });   
    });
}
@grid.Bind(Model).GetHtml()
See Also