public override void ConfigureExecution(GridViewSettings settings, HtmlHelper html, ViewContext viewContext) { base.ConfigureExecution(settings, html, viewContext); settings.SettingsBehavior.AllowSelectSingleRowOnly = true; settings.Settings.ShowGroupFooter = DevExpress.Web.GridViewGroupFooterMode.VisibleAlways; settings.SetGroupFooterRowTemplateContent(c => { var isPlanMonitoring = (bool)DataBinder.Eval(c.DataItem, "IsPlantMonitoring"); var subGroupText = (string)DataBinder.Eval(c.DataItem, "SubGroup"); var content = string.Empty; if (isPlanMonitoring) { var groupId = (int)DataBinder.Eval(c.DataItem, "GroupId"); html.RenderPartial("BarrierAuthorityRenderAssetsPartial", RigChecklist.Assets.ToGroupAssetModels(groupId, GetClient <OapChecklistAssetDataManagementClient>())); } }); settings.HtmlRowCreated = (sender, e) => { var isPlantMonitoringRow = (bool)(e.GetValue("IsPlantMonitoring") ?? false); if (e.RowType == DevExpress.Web.GridViewRowType.GroupFooter) { e.Row.Visible = isPlantMonitoringRow; } }; settings.BeforeGetCallbackResult = (sender, e) => { MVCxGridView grid = (MVCxGridView)sender; grid.ClearSort(); var i = grid.GroupCount; grid.GroupBy(grid.Columns["Group"]); grid.GroupBy(grid.Columns["SubGroup"]); }; }