Is it not possible to right align a column header in the DataGridView without the hidden sort arrow?

Hello

When I right align a short column header in the DataGridView it look midle aligned, because if the sort direction arrow that will not appear before a user clicks on it. I can get more right aligned by setting SortMode = DataGridViewColumnSortMode.NortSortable, but if course the users will not be able to sort the list.

Is not possible to have a sortable list and still have a true right alignment column Is its possible to remove this sort arrow



Answer this question

Is it not possible to right align a column header in the DataGridView without the hidden sort arrow?

  • Chris0144

    No -- it is not possible in this version to enable sorting on the column and have a "true" right alignment column header. You'll need to draw the header text yourself if you want that.

    -mark
    Program Manager
    Microsoft
    This post is provided "as-is"


  • Is it not possible to right align a column header in the DataGridView without the hidden sort arrow?