Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataGrid Sorting Doesn't Work
Message
From
27/11/2012 08:31:06
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
DataGrid Sorting Doesn't Work
Miscellaneous
Thread ID:
01558163
Message ID:
01558163
Views:
57
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
Reply
Map
View

Click here to load this message in the networking platform