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();