Datagrid Text Allignment

  • Thread starter Thread starter alex
  • Start date Start date
A

alex

Hi,
two datagrid questions.

1: how can i allign the column header text i.e. have it centered.
the data fields are aligned with HorizontalAligment.xxx and that
works... but on the header.?

2: Is it possible to have colum header and contents differently allinged.

Thanks
Alex
 
Hi,

(assuming the Windows Forms data grid)

Short answer to both of the questions: No, you can't
The long answer: You probably can if you completely override the grid's
paining routine and paint column headers yourself.
 
Back
Top