Caption on Visible Columns

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

1 Reply

RS Rajarajeswari S Syncfusion Team November 15, 2007 10:12 AM UTC


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



Loader.
Up arrow icon