CSLA .NET

From Rockford Lhotka's Expert C# 2008 and VB 2008 Business Objects books

Welcome to CSLA .NET Sign in | Join | Help
in Search

CSLA 3.6 and MS WPF DataGrid

Last post 01-05-2009, 8:58 PM by maxal. 1 replies.
Sort Posts: Previous Next
  •  01-02-2009, 9:45 PM 29452

    CSLA 3.6 and MS WPF DataGrid

    I'm trying to use the column sort option of the MS WPF Datagrid, with the grid bound to a CslaDataProvider, the grid will display the data, but I'm unable to sort the list by clicking on the column header.  I have tried other vendor WPF grids, but all behave the same way.

    Has anybody been able to get this to work ?

    If YES please explain how or any idea's of how I can get this to work

  •  01-05-2009, 8:58 PM 29493 in reply to 29452

    Re: CSLA 3.6 and MS WPF DataGrid

    The only way I could make it work is by using Linq. Like this:
    Instead of line
    ItemsSource = list
    I used
    ItemsSource = from item in list select item;

    Maxim Alexeyev
    Discovering.NET
View as RSS news feed in XML

Please contact Magenic for your .NET consulting
and CSLA .NET mentoring needs.
Please consider making a donation to help support the ongoing development of CSLA .NET.

Make donation through PayPal - it's fast, free and secure!
Why donate?
Powered by Community Server, by Telligent Systems