Header cell alignment

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Morten Snedker

    #1

    Header cell alignment

    Using datagridview:

    ..Columns(2).He aderCell.Style. Alignment =
    DataGridViewCon tentAlignment.M iddleRight

    still leaves a lot of space to the right border of the column header -
    any good reason for this?




    Regards /Snedker
  • Sam Malone

    #2
    Re: Header cell alignment

    I believe it's space for the little up/down arrow if you click on the header
    to sort the grid on that column.

    "Morten Snedker" <morten_spammen ot_ATdbconsult. dk> wrote in message
    news:vh13329phl 7cc6ca2q7nj3tps 4j0lta4i5@4ax.c om...[color=blue]
    > Using datagridview:
    >
    > .Columns(2).Hea derCell.Style.A lignment =
    > DataGridViewCon tentAlignment.M iddleRight
    >
    > still leaves a lot of space to the right border of the column header -
    > any good reason for this?
    >
    >
    >
    >
    > Regards /Snedker[/color]


    Comment

    Working...