The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
We are saving the grid settings using "WriteXmlSchema()" method. Later, we are applying the SAVED grid settings along with some other column additions/removals on grid.
While we are applying the SAVED grid settings, we are creating a temporary engine object using "GridEngine.CreateFromXml()", making changes to the temporary engine TableDescriptor.Columns and TableDescriptor.VisibleColumns collections. (We can't avoid this temp engine and column collections updating.) And then we are Initializing the grid control with this temporary grid engine.
But the line gridGroupingControl.Engine.InitializeFrom(tempEngine); is some times throwing the error like {"Item has already been added. Key in dictionary: '' Key being added: 'COLUMN NAME'"}.
So, I guess, some kind of cleaning up is required on gridGroupingControl.Engine before/while Initializing.
Do we need to call any other method/set properties for Initializing?
ADAdministrator Syncfusion Team January 3, 2007 05:13 AM UTC
Hi Rajani,
Before intialize the Engine, you need to clear the Bounded columns in a grid by calling the TableDescriptor.Columns.Clear() method. Here is a code snippet