Hide and rename columns in grouping grid

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!


3 Replies

AD Administrator Syncfusion Team 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





AD Administrator Syncfusion Team 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 :)


TJ Troy Johnson November 27, 2009 02:34 PM UTC

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

Loader.
Up arrow icon