You can do this by deriving the DataGrid and overriding OnMouseDowm. In your override, do a HitText and if the hit is on a column header that you do not want to sort, do not call the baseclass. Here is a code that sorts all columns except the second column
|