Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sorting on Datagrid column with converter
Message
De
20/02/2013 11:11:54
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Titre:
Sorting on Datagrid column with converter
Divers
Thread ID:
01566496
Message ID:
01566496
Vues:
52
I've got a grid which shows a column based on a converter, defined like this:
<DataGridTextColumn Header="Invoice #"
                    Width="*" 
                    Binding="{Binding crt_invfk, Converter={StaticResource Inv_PkToNumberConverter}}"                                                     
                    x:Name="txtInv_Number" IsReadOnly="False"/>
This takes the crt_invfk and looks up the actual invoice number and returns that for display. If I click on the column header the sorting gets done on crt_invfk, whereas I need it to sort on the Invoice number.

How do I achieve this?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Répondre
Fil
Voir

Click here to load this message in the networking platform