Custom Sort Icons with Silverlight 2's DataGrid Control(mattberseth.com)
submitted by
crpietschmann(11.3k) 3 years, 9 months ago
While looking through the control templates for Silverlight 2's DataGrid, I noticed the DataGridColumnHeader defines a couple of StoryBoards that allow you to control how the headers are displayed as they pass through the three column states: {Sorted Ascending, Sorted Descending, Unsorted}. And without too much work you can override the default display and customize it to your liking. I took a crack at overriding these states to mimic the icons the awesome jquery tablesorter plugin uses - below is a sample table that shows how it turned out. Read on for the details (there really aren't too many) and don't forget to check out the live demo and download.
|category: Silverlight
|Views: 164
tags:
Silverlight DataGrid another
Everyones tags:
Your Tags: