SVN-Revision: r406
This commit is contained in:
tdx
2025-03-26 13:45:13 +00:00
parent 84d7230682
commit f88a8493d4
+9
View File
@@ -858,6 +858,8 @@ namespace Lskj.Control
bandedGridControlEx.moduleModel = this.SysModel;
bandedGridControlEx.Model = this.Model;
bandedGridControlEx.Dock = DockStyle.Fill;
// 明确设置禁止自动调整列宽
bandedGridControlEx.BandedView.OptionsView.ColumnAutoWidth = false;
gcMain.CustomGroupBandEx = bandedGridControlEx;
this.panelControl1.Controls.Add(bandedGridControlEx);
bandedGridControlEx.BringToFront();
@@ -4072,6 +4074,13 @@ namespace Lskj.Control
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
protected void OnSaveClick(object sender, EventArgs e)
{
if (this.GridControlObj.CustomGroupBandEx != null)//保存前若存在虚拟多表头则反写修改
{
this.GridControlObj.callbackUpdData();
}
int dataNumber = (this.GridControlObj.GridView.GetGridViewFilteredAndSortedDataToDataTable() as DataTable).Rows.Count;
for (int i = 0; i < dataNumber; i++)