方法一:纯代码
this.list.gridControl.ItemsSource = lsItem; this.list.gridControl.GroupBy("GroupTitle"); this.list.gridControl.Columns["GroupTitle"].SortOrder = ColumnSortOrder.Descending; //this.list.gridControl.SortBy(this.list.gridControl.Columns["GroupTitle"], ColumnSortOrder.Descending); this.list.gridControl.ExpandAllGroups();
方法二:XAML定义,构造函数中绑定