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.

Add Column another issue

Thread ID:

Created:

Updated:

Platform:

Replies:

47375 Aug 3,2006 10:30 AM Aug 3,2006 02:34 PM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On August 3, 2006 10:30 AM

Hi,

while playing around with the GGC4Tables sample I have found another issue. I have attached the sample.

Run the application and press the "Add Column" button. Now there should be a new coloumn in GGC in the upper area and a new column in the GGC in lower area. But in the lower area there was no new column added.

For background information there was a call to:

gridGroupingControl2.TableDescriptor.VisibleColumns.Remove("D");

in the lower area GGC before and this seems the problem. The GGC doesn''t update it''s visible columns anymore. Can you take a look at this one.



GGC_4tables3.zip

Administrator [Syncfusion]
Replied On August 3, 2006 02:34 PM

This is by design. The first time you touch the TableDescriptor.VisibleColumns collection in any manner, this collection is auto populated from the existing TableDescriptor.Columns collection at that point in time. Thereafter, adding or removing columns in TableDescriptor.Columns will not be automatically reflected in the TableDescriptor.VisibleColumns. You will have to explicitly add them as well. Or, if you want to reset the VisibleColumns so they will be repopulated from the Tabledescriptor.Columns collection, you can call:
gridGroupingControl1.TableDescriptor.ResetVisibleColumns();

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.

;