From b6f3c73cffbe789bb47ab20b2d570cc434e7f4c1 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期日, 23 三月 2025 15:48:36 +0800 Subject: [PATCH] 1 --- DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs index 45f9da6..e05efc3 100644 --- a/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs +++ b/DevApp/Gs.DevApp/UserControl/UcToolBarMenu.cs @@ -7,11 +7,9 @@ using System.Net; using System.Text; using System.Windows.Forms; -using DevExpress.Utils.Text.Internal; using DevExpress.XtraBars; using DevExpress.XtraEditors; using DevExpress.XtraGrid; -using DevExpress.XtraGrid.Columns; using DevExpress.XtraGrid.Views.Grid; using DevExpress.XtraLayout; using Gs.DevApp.DevFrm.Rpt; @@ -1241,11 +1239,13 @@ { string _gvColName = a["gvColName"].ToString(); string _sqlField = a["sqlField"].ToString(); + string _sqlFieldType = a["sqlFieldType"].ToString(); var column = gv1.Columns.Cast<DevExpress.XtraGrid.Columns.GridColumn>() .FirstOrDefault(c => c.Name == _gvColName); if (column != null) { column.Tag = _sqlField; + column.UnboundExpression = _sqlFieldType; } } } -- Gitblit v1.9.3