첨부 소스 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
using System.ComponentModel;

using DevExpress.Xpf.Grid;

#region SUMMARY 값으로 그룹 정렬하기 - SortGroupBySummaryValue(gridControl, groupedGridColumn, gridSummaryItem, listSortDirection)

/// <summary>
/// SUMMARY 값으로 그룹 정렬하기
/// </summary>
/// <param name="gridControl">GridControl 객체</param>
/// <param name="groupedGridColumn">그룹 GridColumn 객체</param>
/// <param name="gridSummaryItem">GridSummaryItem 객체</param>
/// <param name="listSortDirection">리스트 정렬 방향</param>
private void SortGroupBySummaryValue
(
    GridControl       gridControl,
    GridColumn        groupedGridColumn,
    GridSummaryItem   gridSummaryItem,
    ListSortDirection listSortDirection
)
{
    GridGroupSummarySortInfo gridGroupSummarySortInfo = new GridGroupSummarySortInfo
    (
        gridSummaryItem,
        groupedGridColumn.FieldName,
        listSortDirection
    );

    gridControl.GroupSummarySortInfo.Add(gridGroupSummarySortInfo);
}

#endregion
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요