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

Hiding a group of columns and then showing then in the original position and order in a ggc via VisibleColumns.Add

Thread ID:

Created:

Updated:

Platform:

Replies:

52729 Dec 3,2006 07:28 AM UTC Dec 4,2006 05:00 AM UTC Windows Forms 1
loading
Tags: Grouping
James Blibo
Asked On December 3, 2006 07:28 AM UTC



I have the fllw columns (description, rate, 1Q2006, 2Q2006, 3Q2006, 4Q2005, Aggregate.) in a ggc in the exact order. This is the default order of the columns in the VisibleColumns collection.



I have a drop down with the fllw values (All Quarters, 1Q2006, 2Q2006, 3Q2006, and 4Q2005)

When the user select a specific quarter, I want to hide all the other columns and show only the selected quarter.

The way I go about this is to hide all the Quarters columns (via VisibleColumns.Remove) and then add the selected Quarter back via (VisibleColumns.Add)

The problem is that when I add the the selected Quarter back, it's add after the 'Aggregate' columnn. I did not see a VisibleColumns.AddAt method. Is there a way I can easily accomplish this?

James Blibo
Replied On December 4, 2006 05:00 AM UTC

never mind.. found it... example...
ordersDescriptor.VisibleColumns.Insert(3, new GridVisibleColumnDescriptor("Freight"));

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

;