码迷,mamicode.com
首页 > 其他好文 > 详细

[DevExpress] GridControl 分组

时间:2016-01-04 11:40:27      阅读:294      评论:0      收藏:0      [点我收藏+]

标签:

 private void checkEditAccGrouping_CheckedChanged(object sender, EventArgs e)
{
    DevExpress.XtraGrid.Columns.GridColumn column = bandedAccountID; 
    if (column == null) {
        return;
    }
    if (checkEditAccGrouping.Checked) {
        column.GroupIndex = 0;
        column.SortMode = DevExpress.XtraGrid.ColumnSortMode.Value;
        bandedGridView1.OptionsBehavior.AutoExpandAllGroups = true;
    }
    else {
        column.GroupIndex = -1;
        bandedGridView1.OptionsBehavior.AutoExpandAllGroups = false;
    }
    bandedGridView1.RefreshData();
}        

 

[DevExpress] GridControl 分组

标签:

原文地址:http://www.cnblogs.com/panpan-v1/p/5098213.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!