From 3c97c383d25bdab9eab249b4d44b3539f67ba6db Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期二, 14 一月 2025 17:31:23 +0800 Subject: [PATCH] 1 --- DevApp/Gs.DevApp/DevFrm/WW/Frm_WwPc.cs | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/WW/Frm_WwPc.cs b/DevApp/Gs.DevApp/DevFrm/WW/Frm_WwPc.cs index c92a99e..2ddc04f 100644 --- a/DevApp/Gs.DevApp/DevFrm/WW/Frm_WwPc.cs +++ b/DevApp/Gs.DevApp/DevFrm/WW/Frm_WwPc.cs @@ -1,3 +1,4 @@ +using DevExpress.Utils.Extensions; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Gs.DevApp.UserControl; @@ -240,7 +241,9 @@ { lbGuid.Text = ""; Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 4); - UtilityHelper.CleanValueByControl(panel1.Controls, true); + List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>(); + gvList.Add(gvMx1); + UtilityHelper.CleanValueByControl(panel1.Controls, true, gvList); Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1); } /// <summary> @@ -343,6 +346,7 @@ { gcMain.DataSource = dt; gcMain.ForceInitialize(); + gridView1.BestFitColumns(); } else UtilityHelper.SetDefaultTable(gcMain, gridView1); @@ -403,6 +407,7 @@ gcMx1.BindingContext = new BindingContext(); gcMx1.DataSource = dt; gcMx1.ForceInitialize(); + gvMx1.BestFitColumns(); } else { -- Gitblit v1.9.3