SVN r1104
SVN-Revision: r1104
This commit is contained in:
@@ -101,7 +101,11 @@ namespace Lskj.Control
|
||||
/// 虚拟列关联字段
|
||||
/// </summary>
|
||||
public string virtualPrimaryKey;
|
||||
|
||||
/// <summary>
|
||||
/// 行数合计列
|
||||
/// 合计xx行 列,因为默认给的在最前面插入空白表头列,按照工具顺序加载列,可能会出现有2列合计行,所以在重新创建时就把之前的清空
|
||||
/// </summary>
|
||||
public GridColumn TotalColumn;
|
||||
|
||||
public BandedGridControlEx()
|
||||
{
|
||||
@@ -1075,6 +1079,11 @@ namespace Lskj.Control
|
||||
// 设置底部合计
|
||||
if (gridColumn.VisibleIndex == 0 && isBlankHeader)//只有空白表头才设置 合计xxx行
|
||||
{
|
||||
if (this.TotalColumn != null)
|
||||
{
|
||||
this.TotalColumn.Summary.Clear();
|
||||
}
|
||||
this.TotalColumn = gridColumn;
|
||||
|
||||
bandedGridView.OptionsView.ShowFooter = true;
|
||||
gridColumn.Summary.AddRange(new GridSummaryItem[] { new GridColumnSummaryItem(DevExpress.Data.SummaryItemType.Count, gridColumn.FieldName, TotalFormat) });
|
||||
|
||||
Reference in New Issue
Block a user