Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataGrid Sorting Doesn't Work
Message
De
27/11/2012 08:31:06
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
DataGrid Sorting Doesn't Work
Divers
Thread ID:
01558163
Message ID:
01558163
Vues:
55
Hi,

MM.NET 3.6 with VS 2008, .NET 3.5, C# & WPF.

I've followed the jump start and looked at the sample and created my own Lists form which list Country Code and Country in the Navigation grid (DataGrid) on Tab1 of a form. Data shows fine but two problems:

1. The navigation bar does not get refreshed (enabled) until I click on any row other than the first one.

2. Clicking on the column headers changes the up or down arrow in the header, but the data is not reordered.

This is my XAML code:
                        <Custom:DataGrid Margin="5" x:Name="grdCountries" IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding Mode=OneWay}" SelectionMode="Single" GridLinesVisibility="None" HeadersVisibility="Column" Grid.Column="0" AutoGenerateColumns="False" Grid.ColumnSpan="1" Style="{DynamicResource HDSDataGridStyle}">
                            <Custom:DataGrid.Columns>
                                <Custom:DataGridTextColumn Header="Code" Width="0.2*" Binding="{Binding cnt_code, Mode=OneWay}" CanUserReorder="True" CanUserResize="True" CanUserSort="True" SortMemberPath="cnt_code" />
                                <Custom:DataGridTextColumn Header="Country" Width="0.8*" Binding="{Binding cnt_name, Mode=OneWay}" CanUserReorder="True" CanUserResize="True" CanUserSort="True" SortMemberPath="cnt_name" />
                            </Custom:DataGrid.Columns>
                        </Custom:DataGrid>
Any ideas?
Frank.

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

Click here to load this message in the networking platform