We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

white space in a column header

Thread ID:

Created:

Updated:

Platform:

Replies:

77662 Nov 11,2008 07:52 PM UTC Nov 18,2008 06:39 PM UTC Windows Forms 1
loading
Tags: GridControl
Andy Chan
Asked On November 11, 2008 07:52 PM UTC

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.


Nirmal Raja [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;