Skip to main content

GridViewSettings.SetEditFormTemplateContent(String) Method

Allows you to specify an edit form template.

Namespace: DevExpress.Web.Mvc

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

Declaration

public void SetEditFormTemplateContent(
    string content
)

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