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:

Created:

Updated:

Platform:

Replies:

69820 Nov 13,2007 10:52 AM Nov 15,2007 05:12 AM ASP.NET Web Forms (Classic) 1
loading
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 ?



STGRID.zip

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


Hi,

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:

http://websamples.syncfusion.com/samples/Grid.Web/5.2.0.25/F69820/main.htm

Please let me know if this helps you out.

Regards,
Raji



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.

;