我正在使用过滤器和组选项实现radgrid。我能够执行所有操作,并且保存所有设置,以便再次打开它时可以应用这些设置,但是在检索信息列名称时不会出现。请检查所附图片
foreach (GroupSetting setting in Settings.GroupSettings)
{
ColumnGroupDescriptor d = new ColumnGroupDescriptor();
d.Column = (from c in grid.Columns.OfType<GridViewBoundColumnBase>()
where c.GetDataMemberName() == setting.PropertyName
select c).FirstOrDefault();
d.SortDirection = setting.SortDirection;
grid.GroupDescriptors.Add(d);
}