Home Forums WPF controls Xceed DataGrid for WPF WPF Xceed DataGrid binding to LINQ speed?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #25011 |

    I have been working with the Xceed DataGrid for a few days now and I love the it. However, to scroll through 1000 records is very slow. Am I doing something wrong?

    I am binding the ItemsSource to a LINQ query in the code behind.

    The following is the XAML:

    <xcdg:DataGridControl x:Name=”ListViewMeetings” HorizontalAlignment=”Stretch” VerticalAlignment=”Stretch”/>

    The following is the LINQ:

    CaselinkDataContext dc = new CaselinkDataContext();
    var cases = (
    from c in dc.Cases
    where c.asset == “N”
    from m in c.Meetings
    where m.time_341 != “”
    orderby m.date_341, m.time_341, c.case_no
    select new { m.date_341,m.time_341,m.rank_341,c.trustee_no,c.case_no,c.case_name,m.result_341,c.debt_atty,c.d_rnd,c.date_cont,c.date_closed,c.d_discharge }
    ).Take(1000);
    ListViewMeetings.ItemsSource = cases;

    Imported from legacy forums. Posted by Wally (had 707 views)

    Xceed Support
    Member
    Post count: 5658

    Some “latency” is considered normal when using the “live scrolling” with the DataGridControl.

    The “latency” is caused by the time required to “generate” the next page of data rows.

    This is an area were we already made some improvements and are constantly trying to improve.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 2854 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.