I would like to change text header alignment in datagrid only for header text. And rest let as is in column properties in TableStyle.
e.g. header text is aligned in center and the rest have right elignment.
My idea is to replece text in header with my text by e.DrawString method.
But I need to know rectangle of given column header. I can't use getCellBounds, it works only for rows and colmuns from index 0.
How can I acquire it?
Do you have any solution for header alignment?
Thank you for your advice
ADAdministrator Syncfusion Team April 5, 2003 06:02 PM UTC
This FAQ draws text into the RowHeaders. It works around the problem of GetCellBounds not working for headers. Maybe the same techniques will work to get the column header cellbounds.
How can I place text in the rowheader column of my datagrid?