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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl and Column add

Thread ID:





32879 Aug 9,2005 02:26 PM UTC Dec 13,2016 01:12 PM UTC WinForms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On August 9, 2005 02:26 PM UTC

Hi together, I have a gridgroupingcontrol with an assigned data source. Now when I later add a further column to the datatable which is assigned to the data source of the grid - I get an error when I try the following: // Get the grid engine GridEngine engine = this.myGridGrouping.Engine; GridTableDescriptor parentTD = (GridTableDescriptor)engine.TableDescriptor; GridTableCellStyleInfo nameStyle = parentTD.Columns["NameOfNewColumn"].Appearance.AnyRecordFieldCell; I get the error that the "NameOfNewColumn" doesn''t exist. But the column really exists in the datasource property. I think I have to make an update to the engine or the gridgroupingcontrol so that my changes become known. How can this be done? Regards, Markus

Administrator [Syncfusion]
Replied On August 9, 2005 03:22 PM UTC

A couple of ways you can try to handle this. If you know when you have added the extra column to your datasource, you can try calling TableDescriptor.Columns.Add and also add the column to the grid. The other thing you can try is calling TableDescriptor.Columns.LoadDefault. This should reload all the columns from teh datasource.

Jim LIttle
Replied On December 9, 2016 07:09 PM UTC


The problem with calling TableDescriptor.Columns.LoadDefault() is that all customizations already done to the columns (such as the HeaderText value) will be wiped out when LoadDefault() runs. 

Amal Raj Umapathy Selvam [Syncfusion]
Replied On December 13, 2016 01:12 PM UTC

Hi Jim, 

Thanks for your update. 

We have updated the details regarding your query in the incident 168943. Please refer to the incident 168943 for better follow up. 

Amal Raj U. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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