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.

Caption on Visible Columns

Thread ID:





69820 Nov 13,2007 10:52 AM Nov 15,2007 05:12 AM ASP.NET Web Forms (Classic) 1
Tags: Grouping
Steve Scott
Asked On November 13, 2007 10:52 AM

I am using the GridGrouping control to display data from a custom data table. On display, the headers are using the 'Caption' property from the DataTable to display Column headers. I have tried looping through the visible columns collection of the Table Descriptor, .Name and .Getname() both return the actual field name, how can I get the Caption or displayed name ?


Rajarajeswari S [Syncfusion]
Replied On November 15, 2007 05:12 AM


Thanks for using Syncfusion products.

You can access the display text of the column using the property called HeaderText. Please refer the below code snippet which illustrates this:

Response.Write("Display Name:"+this.GridGroupingControl1.TableDescriptor.Columns[0].HeaderText);

Please refer the sample from the below link which illustrates the above:


Please let me know if this helps you out.



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.