locked
Using a Datagrid - Sort by image... RRS feed

  • Question

  • Hello,

    Is the following functionality something I can build in Blend?

    I have a datagrid with 2 columns, the 2nd column is a ranking displayed as a set of 1, 2, 3, 4, or 5 stars.  I want to be able to display the datagrid and allow the user to sort the rows by clicking on the ranking header showing the rows in either ascending or descending order.

    I can get this to work if I display a number but once I change the sample data to an image the ability to sort goes away.  I suppose it doesn’t make sense to be able to sort by an image but how do I get this to work assuming that each image represents a ranking of 1-5? Do I need to supply a number for the ranking then somehow convert it to an image when it displays?

    Bob

     

     

    Sunday, October 18, 2009 9:52 PM