From e69c914f9c794af749fa02d574ecf57fd4eb0e6f Mon Sep 17 00:00:00 2001 From: tdx Date: Wed, 12 Feb 2025 06:34:03 +0000 Subject: [PATCH] SVN r264 SVN-Revision: r264 --- 插件库/Lskj.Control/GridControlEx.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/插件库/Lskj.Control/GridControlEx.cs b/插件库/Lskj.Control/GridControlEx.cs index c3a053d..93c9596 100644 --- a/插件库/Lskj.Control/GridControlEx.cs +++ b/插件库/Lskj.Control/GridControlEx.cs @@ -1047,7 +1047,10 @@ namespace Lskj.Control mLoading = true; try { - if (this.OnDataSourceBindCallBack != null) this.OnDataSourceBindCallBack(null, null); + if (this.OnDataSourceBindCallBack != null) + { + this.OnDataSourceBindCallBack(null, null); + } SetColumnsSource(); } catch (Exception ex) @@ -1057,7 +1060,6 @@ namespace Lskj.Control finally { mControlSourceDic.Clear(); - } } else @@ -1071,7 +1073,7 @@ namespace Lskj.Control foreach (GridColumnModel item in mControlList) { if (this.DisableFieldSources && item.isVislble) continue; - if(item.FieldType == ControlType.LabSelectReturnIdNew || item.FieldType == ControlType.LabSelectReturnTextNew) continue; + if (item.FieldType == ControlType.LabSelectReturnIdNew || item.FieldType == ControlType.LabSelectReturnTextNew) continue; if (!string.IsNullOrWhiteSpace(item.SqlSource)) { DataTable dataTable = new DataTable();