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. Image for the cookie policy date
close icon

Add Column another issue

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

1 Reply

AD Administrator Syncfusion Team August 3, 2006 06:34 PM UTC

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();

Loader.
Live Chat Icon For mobile
Up arrow icon