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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Invalid column headers

Thread ID:





51875 Nov 15,2006 08:24 PM UTC Nov 16,2006 07:15 AM UTC WinForms 1
Tags: Grouping
Administrator [Syncfusion]
Asked On November 15, 2006 08:24 PM UTC


I'm binding the control to a data table but column headers get their names from the data table's column names (DataColumn.ColumnName) instead of the DataColumn.Caption property (as I expect and as it appears in the standard .NET DataGridView control)

1. How can I make column headers get their names from the column captions?
2. How can I change the captions at runtime?


Administrator [Syncfusion]
Replied On November 16, 2006 07:15 AM UTC

Hi Tmn,

1) How can I make column headers get their names from the column captions?

By Default, GroupingGrid displays the ColumnHeader text from the caption property of the DataColumn in the DataTable. Please refer to the attached sample for more details and let me know if you are looking something different

Here is a sample.

2 ) How can I change the captions at runtime?

You can change the captiontext/HeaderText of the column by using the GridColumnDescriptor.HeaderText property. Here is a code snippet.

int i = 0;
foreach(GridColumnDescriptor column in this.gridGroupingControl1.TableDescriptor.Columns)
column.HeaderText = "HeaderText" + (i++);

Best Regards,


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon