Home All Groups Group Topic Archive Search About

Header cell alignment

Author
3 Apr 2006 9:22 PM
Morten Snedker
Using datagridview:

..Columns(2).HeaderCell.Style.Alignment =
DataGridViewContentAlignment.MiddleRight

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




Regards /Snedker

Author
27 Apr 2006 2:46 AM
Sam Malone
I believe it's space for the little up/down arrow if you click on the header
to sort the grid on that column.

Show quoteHide quote
"Morten Snedker" <morten_spammenot_ATdbconsult.dk> wrote in message
news:vh13329phl7cc6ca2q7nj3tps4j0lta4i5@4ax.com...
> Using datagridview:
>
> .Columns(2).HeaderCell.Style.Alignment =
> DataGridViewContentAlignment.MiddleRight
>
> still leaves a lot of space to the right border of the column header -
> any good reason for this?
>
>
>
>
> Regards /Snedker