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

HeaderText

Thread ID:

Created:

Updated:

Platform:

Replies:

63019 Jun 26,2007 08:58 PM Jun 27,2007 05:26 PM Windows Forms 2
loading
Tags: GridControl
John McLean
Asked On June 26, 2007 08:58 PM

Hi guys

Should be a simple question. I have a Grid DataBoundGrid control and I need to set a column header to an empty string. I tried this code:

dbg.Binder.InternalColumns("ColName1").HeaderText = String.Empty

According to the documentation, if the header text for a column is set to an empty string, the name property replaces it. Is there a property I'm missing for setting this column header to empty?

Cheers,

J

Jeba S [Syncfusion]
Replied On June 27, 2007 05:16 AM

Hi J,

You will have to set the HeaderText to a space, " ". As you say, if you set it to an empty string, it tells the grid that you want to use the MappingName as the header text.

this.gridDataBoundGrid1.Binder.InternalColumns[1].HeaderText=" ";


Kindly let us know if this helps.

Thanks,
Jeba.

John McLean
Replied On June 27, 2007 05:26 PM

Of course! What a blonde moment. Thanks Jeba

>Hi J,

You will have to set the HeaderText to a space, " ". As you say, if you set it to an empty string, it tells the grid that you want to use the MappingName as the header text.

this.gridDataBoundGrid1.Binder.InternalColumns[1].HeaderText=" ";


Kindly let us know if this helps.

Thanks,
Jeba.

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

;