wpf - using Icomparer to sort with special condition -


in project have need sort datagrid column if condition holds true item should @ top(first item) of sorted list. otherwise if condition not hold item should simple sorted list.

i tries using sorting event , defining icomparer not manage desired behavior. code put in icomparer can return item condition true @ top , rest item in sorted fashion.

please can help

it sounds want sort "certain condition" other sort critiria. should case of prepending condition list of sort descriptions in collectionview.


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -