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.

An Easier Way To Hide Columns

Thread ID:

Created:

Updated:

Platform:

Replies:

57347 Mar 1,2007 03:42 PM Mar 1,2007 04:23 PM Windows Forms 1
loading
Tags: GridControl
VoxCode
Asked On March 1, 2007 03:42 PM

I know that if you want to hide a column you can remove the column from the visible columns collection. Is there an easier way that does not require you to remember the position of the column so that when you make it visible you add it back in the correct order. I'm using the GGC.

Administrator [Syncfusion]
Replied On March 1, 2007 04:23 PM

Hi Joel,

You can use the RemoveAt and Insert method of the GridVisibleColumnCollection to hide and show the column at required postion. Here is a code snippet.

//Hide the column.
this.gridGroupingControl1.TableDescriptor.VisibleColumns.RemoveAt(1);
//show the column at specific position.
this.gridGroupingControl1.TableDescriptor.VisibleColumns.Insert(1,"ColumnName");

Best regards,
Haneef

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.

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.

;