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.

How do I change the column headers in a GridDataBoundGrid?

Thread ID:

Created:

Updated:

Platform:

Replies:

77351 Oct 28,2008 11:08 AM Oct 30,2008 11:39 AM Windows Forms 2
loading
Tags: GridControl
abc
Asked On October 28, 2008 11:08 AM

How do I change the column headers in a GridDataBoundGrid?

-TC


abc
Replied On October 28, 2008 01:10 PM

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




Nirmal Raja [Syncfusion]
Replied On October 30, 2008 11:39 AM

Hi,

Thanks for using Syncfusion products.

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

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.

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.

;