Skip to content

Use the SetEditFormTemplateContent method to define the FormLayout extension in edit form template.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/asp-net-web-forms-grid-form-layout-in-edit-form-template

Repository files navigation

Grid View for ASP.NET Web Forms - How to define FormLayout inside edit form template

This example demonstrates how to use the SetEditFormTemplateContent method to define the FormLayout extension in edit form template.

settings.SetEditFormTemplateContent(c => {
    var editItem = ViewData["Item"] != null ? ViewData["Item"] : c.DataItem;
    Html.DevExpress().FormLayout(set => {
        set.Name = "FormLayout";
        // ...               
    }).Render();
  // ...
});

Files to Review

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Use the SetEditFormTemplateContent method to define the FormLayout extension in edit form template.

Topics

Resources

License

Stars

Watchers

Forks