From 88aa1070c22132416fd7ffd6a4a4a7217c4a5d04 Mon Sep 17 00:00:00 2001 From: tdx Date: Wed, 2 Apr 2025 06:58:54 +0000 Subject: [PATCH] SVN r428 SVN-Revision: r428 --- 插件库/Lskj.Control/BandedGridControlEx.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/插件库/Lskj.Control/BandedGridControlEx.cs b/插件库/Lskj.Control/BandedGridControlEx.cs index 7f9569f..67a7608 100644 --- a/插件库/Lskj.Control/BandedGridControlEx.cs +++ b/插件库/Lskj.Control/BandedGridControlEx.cs @@ -187,7 +187,6 @@ namespace Lskj.Control this.GridView.RowCellStyle -= new RowCellStyleEventHandler(OnGridViewRowCellStyle); this.GridView.RowCellStyle += new RowCellStyleEventHandler(OnGridViewRowCellStyle); } - else { if (!SystemInfo.Instance.ConditionalStylePriority) @@ -2954,6 +2953,7 @@ namespace Lskj.Control else { GridColumnModel model = gridColumn.Tag as GridColumnModel; + if (model == null) return; string ColumnSiftValue = string.Empty; string editValue = ControlType.IsValue(model.FieldType) ? GridGroupRowInfo.GroupValueText : GridGroupRowInfo.EditValue + ""; int startindex = GridGroupRowInfo.GroupText.LastIndexOf(":"); @@ -2962,6 +2962,7 @@ namespace Lskj.Control foreach (BandedGridColumn newColumn in this.bandedGridView.Columns) { GridColumnModel Newmodel = newColumn.Tag as GridColumnModel; + if (Newmodel == null) continue; if (Newmodel.Visible && Newmodel.CanSum && !SystemInfo.Instance.GroupSpecialMode) {