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

Hide and rename columns in grouping grid

Thread ID:

Created:

Updated:

Platform:

Replies:

72335 Mar 14,2008 07:36 AM UTC Nov 27,2009 02:34 PM UTC ASP.NET Web Forms (Classic) 3
loading
Tags: GridGroupingControl
Kris Lilley
Asked On March 14, 2008 07:36 AM UTC

I didn't have any luck searching the forums for this, but I am trying to figure out how to hide and rename columns after binding the grouping grid to a dataset. Can someone explain how that would be done?

Thanks!


Administrator [Syncfusion]
Replied On March 18, 2008 08:44 PM UTC

Hi Kris,

You can change the column header text by using the below code snippet:

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

You can hide the column by using the VisibleColumns.Remove method

this.GridGroupingControl1.TableDescriptor.VisibleColumns.Remove("Col2");

Please let me know if you need any other assistance.

Best regards,
Johnson




Administrator [Syncfusion]
Replied On May 18, 2009 09:26 AM UTC

How to access the value of the hidden column cell.

In the context menu item select event, I need to access the value of the hidden column using the e.ContextData, if the column is not hidden it works perfectly fine but not otherwise.

Thanks in advance. Its urgent :)

Troy Johnson
Replied On November 27, 2009 02:34 PM UTC

does anyone know how to accomplish this with databinding in the xaml (no codebehind)?

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

;