Sorting Listview column on celltemplate that has multibinding

Aug 24, 2011 at 3:34 PM

My listview column has a celltemplate that has a multibinding on it. So I have spun my wheels for hours trying to figure out how to sort it. So the contents of the column are not using one simple property in my viewModel. It has to be sorted on the actually values in the listview. Can this be done with Linq? I would truly appreciate some help!! Thanks!

<DataTemplate x:Key="ExistsCell">
                        <MultiBinding Converter="{StaticResource ExistsAndOverwriteConverter}">  
                            <Binding Path="IsSelected" RelativeSource="{RelativeSource Mode=FindAncestor,AncestorType={x:Type ListViewItem}}" />
                            <Binding Path="AlreadyExists" />
And the column:
  <GridViewColumn x:Name="colExists"                                           
        CellTemplate="{StaticResource ExistsCell}" >
               Content="{StaticResource existsHeader}"                                    
               Visibility="{Binding Path=AddMode, Converter={StaticResource BoolToVisibilityConverter}, ConverterParameter=Collapsed}"/>