Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

DataGrid performance (SL 2.0 beta 2) RSS

4 replies

Last post Jun 10, 2008 09:13 PM by yifung

(0)
  • vsi

    vsi

    Member

    26 Points

    9 Posts

    DataGrid performance (SL 2.0 beta 2)

    Jun 08, 2008 09:33 PM | LINK

    DataGrid becomes awfully slow when the number of columns exceeds, say, a 100.

    Is it possible to enable UI virtualization for the columns?

     Thanks! 
  • samcov

    samcov

    Participant

    1629 Points

    697 Posts

    Re: DataGrid performance (SL 2.0 beta 2)

    Jun 09, 2008 08:09 AM | LINK

    vsi

    DataGrid becomes awfully slow when the number of columns exceeds, say, a 100.

    Is it possible to enable UI virtualization for the columns?

     Thanks! 

    I put 1000 records into a DataGrid, and the performance was MUCH better than in SL2 Beta 1, but still not commercial quality.

    That's not too bad, as I will page records anyway, but the MAJOR problem is the way the DataGrid freezes the user interface in Beta 2.

    It didn't do that in Beta 1, but now, you can't type into text boxes, or drag objects until the datagrid is finished doing it's business. 

    That's close to a deal breaker.

     

  • Yi-Lun Luo - MSFT

    Yi-Lun Luo -...

    All-Star

    25149 Points

    2759 Posts

    Microsoft

    Re: Re: DataGrid performance (SL 2.0 beta 2)

    Jun 10, 2008 07:38 AM | LINK

    Unfortunately there's no column virtualization... But I wonder why you have so many columns? I suggest you to consider redesigning your UI, so the users won't have to scroll to right in order to find a particular column they're interested in. Display only the essential columns in the DataGrid, and when the user selects an item, you use a ContentControl to display its details.

    shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.
  • vsi

    vsi

    Member

    26 Points

    9 Posts

    Re: Re: DataGrid performance (SL 2.0 beta 2)

    Jun 10, 2008 03:48 PM | LINK

    We have so many columns because our users ask us to. We tried the approach you are suggesting a while back in a winforms application, but the users didn't like it. The absolute minimum number of columns we have to display is about 50, but even in this case the grid becomes much slower than we would have liked. For example, with 50 columns it takes about a second to do a page down and about 7 seconds to initialize the grid.

     

  • yifung

    yifung

    Contributor

    3937 Points

    637 Posts

    Microsoft

    Re: DataGrid performance (SL 2.0 beta 2)

    Jun 10, 2008 09:13 PM | LINK

    Could you elaborate on how this is different in Beta1?  You mean you could type while scrolling in Beta1 but not in Beta2?

    Yifung Lin [MSFT]