Note that there are some explanatory texts on larger screens.

plurals
  1. POSave Silverlight DataGrid sort
    primarykey
    data
    text
    <p>I have a Silverlight 2.0 DataGrid that contains a list of items that needs to be refreshed in an interval to display the up-to-the-minute information. There are items in this grid that may be added and may be removed while the screen is being displayed to the current user. For Example: </p> <p>If grid looks like the following, then after a minute the data needs to be refreshed because another user has added a 4th entry. (notice the sort is assending by Last Name)</p> <blockquote> <p><a href="http://img16.imageshack.us/img16/1667/datagrid.jpg" rel="nofollow noreferrer">Data Grid http://img16.imageshack.us/img16/1667/datagrid.jpg</a></p> </blockquote> <p>Then when I get the new data set and set it to the datagrid's DataSource property, it resorts the array based on my first column like so:</p> <blockquote> <p><a href="http://img19.imageshack.us/img19/1294/datagridb.jpg" rel="nofollow noreferrer">Data Grid2 http://img19.imageshack.us/img19/1294/datagridb.jpg</a></p> </blockquote> <p>Is there any way to reapply the sort after the data source has been updated? I'd like to save the fact that the data grid is sorted by last name, then update the data source, and then reapply the sort to the data grid. So, in the end the datagrid would look like the following: </p> <blockquote> <p><a href="http://img13.imageshack.us/img13/4636/datagrid2.jpg" rel="nofollow noreferrer">Data Grid3 http://img13.imageshack.us/img13/4636/datagrid2.jpg</a></p> </blockquote> <p>These screen shots are of course not a Silverlight data grid, but this is for simplicity in explaining the situation.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload