From d35bb711f8d3d267b44b4a80c20e31dabf309ae7 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期二, 14 一月 2025 08:17:18 +0800 Subject: [PATCH] 其它入库 --- DevApp/Gs.DevApp/UserControl/SelectItemTbl.cs | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/DevApp/Gs.DevApp/UserControl/SelectItemTbl.cs b/DevApp/Gs.DevApp/UserControl/SelectItemTbl.cs index a60eddd..5d2fe91 100644 --- a/DevApp/Gs.DevApp/UserControl/SelectItemTbl.cs +++ b/DevApp/Gs.DevApp/UserControl/SelectItemTbl.cs @@ -24,13 +24,11 @@ InitializeComponent(); this.daaGuid = _daaGuid; pageBar1.PagerEvent += PageBar1_PagerEvent; - getPageList(1, UtilityHelper.GetPageSize()); - gridView1.IndicatorWidth = 50; - gridView1.CustomDrawRowIndicator += (s, e) => + Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", (value) => { - if (e.Info.IsRowIndicator && e.RowHandle >= 0) - e.Info.DisplayText = (e.RowHandle + 1).ToString(); - }; + + }); + getPageList(1, UtilityHelper.GetPageSize()); btnIn.Click += (s, e) => { var list = new List<string>(); @@ -89,6 +87,7 @@ gcMain.BindingContext = new BindingContext(); gcMain.DataSource = dt; gcMain.ForceInitialize(); + gridView1.BestFitColumns(); var dddd = dd.rtnData.pages; //鎬婚〉 pageBar1.TotalPages = dddd; pageBar1.RecordCount = dd.rtnData.total; //璁板綍鎬绘暟 -- Gitblit v1.9.3