提交当前本机整理版本
This commit is contained in:
@@ -2814,4 +2814,27 @@ namespace Lskj.Control
|
||||
if (childTreeBandView != null)
|
||||
{
|
||||
// 调整底部bandGcBottom的列宽(始终为BandedGridView类型)
|
||||
List<DevExpress.XtraTreeList.Columns.TreeListColumn> bottomColumnList = new List<DevExpress.Xt
|
||||
List<DevExpress.XtraTreeList.Columns.TreeListColumn> bottomColumnList = new List<DevExpress.XtraTreeList.Columns.TreeListColumn>();
|
||||
foreach (DevExpress.XtraTreeList.Columns.TreeListBand gridBand in childTreeBandView.TreeListObj.Bands)
|
||||
{
|
||||
if (gridBand.Caption.Equals("基本信息"))
|
||||
{
|
||||
bottomColumnList.AddRange(gridBand.Columns.Cast<DevExpress.XtraTreeList.Columns.TreeListColumn>());
|
||||
break;
|
||||
}
|
||||
}
|
||||
// 按计算好的宽度均分调整
|
||||
if (bottomColumnList.Count > 0)
|
||||
{
|
||||
int perWidth = allWidth / bottomColumnList.Count;
|
||||
foreach (DevExpress.XtraTreeList.Columns.TreeListColumn bandedGridColumn in bottomColumnList)
|
||||
{
|
||||
bandedGridColumn.Width = perWidth;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user