Such a code works fine at my end.
By default the sorting feature of RadGridView gets disabled when it is not possible to determine any order for the elements of the respective type. Can your data be sorted on any of the bound 'ID' or 'MessageTypeID' properties?
All the best,
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>