SVN r829
SVN-Revision: r829
This commit is contained in:
@@ -425,8 +425,21 @@ namespace Lskj.Control
|
||||
gridBandEmpty.AppearanceHeader.Options.UseTextOptions = true;
|
||||
gridBandEmpty.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
|
||||
|
||||
if (this.moduleModel.BandSequentialMode)
|
||||
{
|
||||
if (!gcMain.Bands.Contains(gridBandEmpty))
|
||||
{
|
||||
gcMain.Bands.Add(gridBandEmpty);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
TreeListBand treeListBand = gcMain.Bands.Cast<TreeListBand>().FirstOrDefault(x => string.IsNullOrEmpty(x.Caption));
|
||||
if (treeListBand == null)
|
||||
{
|
||||
gcMain.Bands.Add(gridBandEmpty);
|
||||
}
|
||||
}
|
||||
|
||||
gridBandEmptyDic.Add(this.ColumnList.IndexOf(columnModel), gridBandEmpty);
|
||||
}
|
||||
@@ -447,7 +460,7 @@ namespace Lskj.Control
|
||||
|
||||
TreeListBand gridBand = gcMain.Bands.Cast<TreeListBand>().FirstOrDefault(x => x.Caption == bandTitle);
|
||||
|
||||
if (gridBand != null)
|
||||
if (gridBand != null && !string.IsNullOrEmpty(gridBand.Caption))
|
||||
{
|
||||
gridBand.Columns.Add(gridColumn);
|
||||
if (saveGridBandColumn.ContainsKey(gridBand))
|
||||
|
||||
Reference in New Issue
Block a user