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.
Syncfusion Feedback

How can we edit Column name in GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

82527 Jun 24,2008 04:38 AM UTC Mar 6,2009 02:28 AM UTC ASP.NET Web Forms (Classic) 5
loading
Tags: GridGroupingControl
Kallyani Lanje
Asked On June 24, 2008 04:38 AM UTC

HI

How can we edit Column name or Header in the GridGroupingControl.

Kindly give your tips or examples

Thank you
Kallyani


Administrator [Syncfusion]
Replied On June 24, 2008 02:46 PM UTC

Hi Kallyani,

If you are binding a System.DataTable to the GridGroupingControl in code, such as ...

this.GridGroupingControl1.DataSource = myDataTable;
this.GridGroupingControl1.DataBind();

I have found that it is much easier to first change the column names in the DataTable, such as ...

int i = 0;
foreach (DataColumn col in myDataTable.Columns)
{
i ++;
col.ColumnName = "Column Number " + i;
}

If you are not binding to a DataTable at runtime, this solution will not work. In that case, I defer to someone else because I have never changed the GridGroupingControl column names after DataBind().



Rajarajeswari S [Syncfusion]
Replied On June 28, 2008 06:00 PM UTC


Hi Kallyani,

Thanks for using Syncfusion products.

The HeaderText property is used to set desired text to the ColumnHeader. Please refer the below code snippet which illustrates this:


this.GridGroupingControl1.TableDescriptor.Columns[0].HeaderText = "ID";


Please refer the sample from the below link, which illustartes this:

http://websamples.syncfusion.com/samples/Grid.Web/6.1.0.34/Grid_Web_ColHeader/main.htm

Please let me know if you have any other concerns.

Regards,
Raji



Kallyani Lanje
Replied On July 4, 2008 10:11 AM UTC

Can we make column header editable on double
click.means when we double click on column header i want to display column header in editable mode i.e.user should be able to edit header text and save the changes on button click.

Thanks.


Rajarajeswari S [Syncfusion]
Replied On July 7, 2008 06:57 AM UTC


Hi Kalyani,

Thanks for you patience.

Editing ColumnHeaders:

I regret to let you know that currently we do not provide support for this feature in our code library. We have notified our development team on this regard and will get back to you once we hear back from them.

Regards,
Raji




zoujing
Replied On March 6, 2009 02:28 AM UTC

Thanks!


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.

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

;