如题:
2行及以上数据显示都没问题,就是1行的话,什么都不显示 查看table里面也是1行,就是表格不显示,关闭 Footers 区就显示了。
1FlexGrid2.Footers.Fixed = False '让 Footers 在表格控件最底部
C1FlexGrid2.Footers.Descriptions.Add(New C1.Win.C1FlexGrid.FooterDescription)
C1FlexGrid2.Styles.Footer.BackColor = System.Drawing.SystemColors.Control
C1FlexGrid2.Styles.Footer.TextAlign = C1.Win.C1FlexGrid.TextAlignEnum.RightCenter
C1FlexGrid2.Styles.Footer.Font = New Font("宋体", 9, FontStyle.Bold)
C1FlexGrid2.Footers.Descriptions(0).Aggregates.Add(New C1.Win.C1FlexGrid.AggregateDefinition() With {.Column = 2, .Caption = "合计:"})
C1FlexGrid2.Footers.Descriptions(0).Aggregates.Add(New C1.Win.C1FlexGrid.AggregateDefinition() With {.Column = 3, .Aggregate = C1.Win.C1FlexGrid.AggregateEnum.Sum})
C1TrueDBGrid 这个控件就没有问题
如图
|