Datagrid Text Allignment

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
 
D

Dmitriy Lapshin [C# / .NET MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top