DEV网格控件 DevExpress.XtraGrid.Views.Grid.GridView advBandedGridViewMain;
实现合计:
事件注册:
this.advBandedGridViewMain.CustomDrawFooterCell += advBandedGridViewMain_CustomDrawFooterCell;
实现合计:
void advBandedGridViewMain_CustomDrawFooterCell(object sender, DevExpress.XtraGrid.Views.Grid.FooterCellCustomDrawEventArgs e)
{
if (e.Column.SummaryItem.SummaryType == DevExpress.Data.SummaryItemType.Sum)
{
e.Info.DisplayText = Convert.ToString(e.Info.Value);// amount.ToString("¥0.0000");
}
}