开发者

UltraGrid with Custom Sort

开发者 https://www.devze.com 2023-02-22 14:56 出处:网络
I have the following code I\'d like to be used to custom sort my one column: char[] yourOriginalValues = new [] { \'!\', \'A\', \'B\', \'E\', \'$\', \'N\' };

I have the following code I'd like to be used to custom sort my one column:

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)));

How would I go about converting this to a custom sort order for WinUltraGrid?

Thanks!


See Infragistics forum on this

0

精彩评论

暂无评论...
验证码 换一张
取 消