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.
Hi,
I''m using a GDBG to display a collection (ArrayList) of custom objects. Works nicely up to now, but now I need to be able to add new objects to the collection. I ensured that EnableAddNew is true but in the description, it says "if the undelying datasource supports it". So my only guess is that the grid doesn''t know how to create my object. Am I right? If so how can I fix this?
I just read the Urgent please do help thread (http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=37176) and it looks like what I want. Clay said that the collection should implement IBinding.AddNew but is there a collection that already implement this?
ADAdministrator Syncfusion Team November 18, 2005 11:51 PM UTC
You can use a DataTable instead of an ArrayList if all you want is to add new items at the bottom of the list. The grid will then know how to add the new item.
If the Datatable is too heavy, then you will likely have to implement IBindingList on your ArrayList.