From 25ff6b127908f29b757fc26ae6e604ad8096ba8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E5=8F=AB=E9=94=84=E5=A4=B4?= Date: Sat, 13 Jan 2024 08:57:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B2=E6=B7=B7=E6=9C=BA=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Report/DryMixer/SelectAction.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/DryMixer/SelectAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/DryMixer/SelectAction.cs index cd6d079..5aae682 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/DryMixer/SelectAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Report/DryMixer/SelectAction.cs @@ -93,6 +93,17 @@ namespace Mesnac.Action.ChemicalWeighing.Report.DryMixer } _dgvDryMixer.BaseControl.BindDataSource = newTalbe; + + + + Mesnac.Controls.Default.MultiColHeaderDgv clientGrid1 = (GetAllControls().Where(x => x.Name.Contains("MultiColHeaderDgv1")).FirstOrDefault() as Mesnac.Controls.Default.MultiColHeaderDgv); + Mesnac.Controls.Default.MultiColHeaderDgv clientGrid2 = (GetAllControls().Where(x => x.Name.Contains("MultiColHeaderDgv2")).FirstOrDefault() as Mesnac.Controls.Default.MultiColHeaderDgv); + + if(null!= clientGrid1) + { + clientGrid1.DataSource = null; + clientGrid2.DataSource = null; + } }