Applying custom styles for the GridView sorted Columns in .NET 4 beta1


Before .NET 4 ,when the developer wants to provide a custom style for the column that is currently sorted (like adding “sort arrow” in the header of the sorted column) , the developer was have to handle the GridView sorted event and apply some custom styles to that column, see Scott Mitchell article for more information .

.NET 4 beta 1 introduced a new styling features which allows the developers to specify a custom style  for the column that the data is sorted by.

The following are a list of the new GridView properties which can be used to apply custom styles for the sorted columns:

For more information , check the MSDN documentation [here].


Anas Ghanem.

No Comments