具有自定义排序的UltraGrid

时间:2011-04-07 14:07:03

标签: c# sorting ultragrid

我有以下代码,我想用它来自定义我的一列:

char[] yourOriginalValues = new [] { '!', 'A', 'B', 'E', '$', 'N' };

IEnumerable<char> result = 
       yourOriginalValues.Where(c => Char.IsLetterOrDigit(c))
            .OrderBy(c => c)
            .Concat(yourOriginalValues.Where(c => !Char.IsLetterOrDigit(c)));

如何将此转换为WinUltraGrid的自定义排序顺序?

谢谢!

1 个答案:

答案 0 :(得分:1)