HeaderText

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

2 Replies

JS Jeba S Syncfusion Team June 27, 2007 09:16 AM UTC

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.


JM John McLean June 27, 2007 09:26 PM UTC

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.

Loader.
Up arrow icon