Bind to LINQ "Select New"

2 posts, 0 answers
  1. Peter Meinl
    Peter Meinl avatar
    35 posts
    Member since:
    Jan 2010

    Posted 26 Jan 2010 Link to this post

    I am experimenting to write a generic data browser for WCF data services.

    When binding to a query result created using "select new" RadGridView does not display any data: 

    Dim q = From o In svc.Orders Select o 'This query displays data

    Dim q = From o In svc.Orders Select New With {o.OrderDate} 'This query does not display data

    RadGridView1.DataSource = q.ToList

    1. How can I use autogenerated columns with "Select New"?
    2. Can the RadGridView automatically diplay hierarchical data from LINQ queries?
      Ex: from c in Customers select new with {CustomerId, c.Orders}

     

     

     

     

     

     

  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 28 Jan 2010 Link to this post

    Hello Peter Meinl,

    The current version of RadGridView does not support LINQ queries. RadGridView shows data which implements IList or IBindingList interfaces. We plan to extend RadGridView to support new data providers and LINQ queries in the future .NET 3.5 editions of our control.

    Sincerely yours,
    Julian Benkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top