Hide the "Sorting" arrow in the column header of the DataGrid

I have the sorted DataView as the DataSource for my DataGrid.
AllowSorting for DataGridTableStyle is set up to false, so user cannot sort.

When the DataGrid is displayed in the header of the column sorted in the DataView I see the arrow (which usually showes the direction of the sorting). I would like to hide this arrow.
Is there a way to do this
Thank you.


Answer this question

Hide the "Sorting" arrow in the column header of the DataGrid

  • Jeff Modzel

    set the property "AllowSorting" to False

    datagrid.AllowSorting = False

    Byrd Man

  • richi

    Hi,

    I also have the same problem. Please let me know if u found a solution for this.

    Thanks and Regards
    Murali

  • Hide the "Sorting" arrow in the column header of the DataGrid