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.
I am using the GGC and binding it to a custom collection class (that implements CollectionBase and IBindingList). the first time I bind to it everything works fine. the grid displays properly when i add and remove items from the collection.
I call the following code:
grid.TableDescriptor.Name = HEADERS;
// Register any IList with SourceListSet, so that RelationDescriptor can resolve the name
this.grid.Engine.SourceListSet.Add(HEADERS,Headers);
this.grid.DataSource = Headers;
Now, if I want to bind to a new collection of the same type, I first call
grid.ResetTableDescriptor();
grid.TableDescriptor.Relations.Reset();
grid.DataSource = null;
grid.DataMember = null;
grid.Refresh();
to clear old stuff out. I rebind and now when I add or remove stuff from the collection the grid does no show the changes.
ADAdministrator Syncfusion Team July 7, 2006 09:56 PM UTC
Hi Brain,
An arbitrary IBindingList DataSource does not fire any events to notify any changes. In such cases, you would have to explicitly call grid.Refresh and grid.ReIntialize method after the arraylist changes. Here is a code snippet.
this.groupingGrid1.BeginUpdate();
CustomerCollection cc = this.groupingGrid1.DataSource as CustomerCollection ;
cc.Add(new Customer("22222333"));
this.groupingGrid1.EndUpdate(true);
this.groupingGrid1.Reinitialize();
this.groupingGrid1.Refresh();
Regards,
Haneef.