WinForms윈폼 c1flexgrid footer 사용 시, column.expression 사용한 컬럼 계산 결과 표시
페이지 정보
작성자 벌치기 작성일 2023-08-31 15:32 조회 253회 댓글 0건본문
관련링크
안녕하세요. Footer 와 컬럼 Expression 을 함께 사용할 때 Footer 에 계산결과가 표시되지 않습니다.
아래와 같이 초록색 부분은 Footer 로 합계를 표시하고,
빨간색 부분 Column4는 column.expression 으로 Column1, 2, 3 합계를 표시하도록 구성했습니다.
그런데, Column4 Footer 에는 컬럼 합계가 표시되어야 하는데 표시되지 않습니다.
아래 사용한 코드를 첨부합니다.
#region "Footer Setting"
c1FlexGrid1.Footers.Fixed = true;
c1FlexGrid1.ExtendLastCol = true;
c1FlexGrid1.Footers.Descriptions.Add(new C1.Win.C1FlexGrid.FooterDescription() { Caption = "합 계" });
for (int i = 1; i < 42; i++)
{
c1FlexGrid1.Footers.Descriptions[0].Aggregates.Add(new C1.Win.C1FlexGrid.AggregateDefinition() { Column = i, Caption = "{0:N3}", Aggregate = C1.Win.C1FlexGrid.AggregateEnum.Sum });
}
#endregion
#region "ExpressionSetting"
c1FlexGrid1.Cols[4].AllowEditing = false;
c1FlexGrid1.Cols[4].Expression = "[Capacity_1] + [Capacity_2] + [Capacity_3]";
#endregion
댓글목록
등록된 댓글이 없습니다.