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. Image for the cookie policy date

How do I change the column headers in a GridDataBoundGrid?

How do I change the column headers in a GridDataBoundGrid?

-TC


2 Replies

AB abc October 28, 2008 05:10 PM UTC

I can answer my own question.

It seems that when you create a GridDataBoundGrid, you can either explicitly define the columns or you can let the grid do it automatically. To explicitly define the columns, create GridBoundColumn objects and add them to the grid with the GridBoundColumns.Add method. The GridBoundColumn objects have a HeaderText property which lets you change the column header.

As far as I can tell, if you don't explicitly define the columns, the grid will create them automatically. When the grid creates them automatically, you have no control over the column header.

-TC

>How do I change the column headers in a GridDataBoundGrid?

-TC





NR Nirmal Raja Syncfusion Team October 30, 2008 03:39 PM UTC

Hi,

Thanks for using Syncfusion products.

Glad that you have found the solution. Let us know if you have further concerns

Regards,
Nirmal


Loader.
Live Chat Icon For mobile
Up arrow icon