white space in a column header

Hello,

I am trying to format a string for my column header to be displayed. There are some situations where I will need to append empty spaces to get the text to align. I've noticed that when I finally display the grid, the text is not aligned.

I should also note that I have centered the horizontal text alignment. How can I have both the white space and the centered text? Is there a way I can allow padded text to appear the way it should be under this condition?

Thanks,
Andy.


1 Reply

NR Nirmal Raja Syncfusion Team November 18, 2008 06:39 PM UTC

Hi Andy,

Thank you for your interest in Syncfusion products.

Th string of the header cell text can be formatted and changed using a property called HeaderText of specifying the particular column from the collection

Please refer the code below:
this.gridGroupingControl1.TableDescriptor.Columns[1].HeaderText = "Text";

Let me know if you have any queries.

Regards,
Nirmal


Loader.
Up arrow icon