次の方法で共有


What's New in the Silverlight DataGrid in Beta 2

Silverlight 2 Beta 2 was released this weekend, see what ScottGu has to say about it here.  We've all been pretty busy since releasing Beta 1 at MIX, and there are a lot of great new features across the product as a result.  The question that you might be asking is what has changed in the DataGrid?  Check out this list of new features and their associated posts to find out.

New Features Overview

  • Auto-sizing: Unlike Beta 1 when you had to specify widths and heights yourself, everything in the DataGrid now can be auto-sized.  That includes the DataGrid itself, Columns, Rows, Headers, and Row Details.
  • Sorting: Now any time you bind the DataGrid to a collection that implements IList such as a List<T> you now get sorting for free.  Even better sorting isn't limited to a single column, but end users can sort by multiple columns by holding Ctrl and clicking on additional column headers.
  • Column Reordering: In Beta 1 the order of columns could be set programmatically, but now in Beta 2 we have extended this capability to the end user, where column reordering can be performed at runtime just by dragging a column's header.
  • Frozen Columns: This is a semi-advanced feature, but once you know about it you'll be surprised at how useful it can be.  A frozen column does not scroll horizontally but rather is "frozen" in place.  This is the same as the Freeze Column feature in Excel.
  • Programmatic Scrolling: Now you can scroll columns and items into view to make sure that an item you want to highlight to your user is visible on screen.
  • Performance Enhancements: One of the big points of feedback we got in Beta 1 was vertical scrolling speed needed to be faster.  We've made some improvements in this space to speed things up.
  • API Improvements: These are changes that we made to existing API's to try to make using the DataGrid easier.  Hopefully they are all for the better, and we would love to hear your feedback if you think that something could be easier.

Comments

  • Anonymous
    June 09, 2008
    This post is one in a series of posts outlining the new functionality delivered in Silverlight 2 Beta

  • Anonymous
    June 09, 2008
    This post is one in a series of posts outlining the new functionality delivered in Silverlight 2 Beta

  • Anonymous
    June 10, 2008
    Yo, Scott, please include a post about frozen columns.  I tried it out the other night and the columns still scrolled so I must have done something wrong.

  • Anonymous
    June 10, 2008
    Lots of links again tonight: ToolTip Control by Martin Mihaylov, Scott Morrison(3) on DataGrid, VSM by

  • Anonymous
    June 10, 2008
    What is the use of background color property? . i have set height,width as of grid as 300,300 and added only one row and backround as balck. backround color is not reflected in empty rows area.

  • Anonymous
    June 13, 2008
    I've made a simple sample stock quote application with DataGrid and the CPU usage is dramatic. It's 50% on Core 2 Duo 2 Ghz for 15 row and 10 columns grid updated from an async WebService (invoked every 1s by). Am I doing somthing wrong or it will be fixed in a release? thank you

  • Anonymous
    July 14, 2008
    The font in the datagrid is very blurry. When can MS fix it?

  • Anonymous
    August 07, 2008
    hi, How to display the header if there is empty records. Regards Raag

  • Anonymous
    March 03, 2009
    The comment has been removed