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 have created a custom cell type and one of the properties uses a class derived from ArrayList. Essential Grid uses a class called Static Data to store the properties of cells so I need to store my derived class in an instance of Static Data. Unfortunately it appears from Object Browser that Data Data can only return objects of System.Type.
When I do this:
Get Return CType(GetValue MyCellStyleStore.StoredValues), DerivedArrayList) End Get
I get a type conversion error. Everything looks right. The Static Data store contains the DerivedArrayList type but the GetValue is returning the ArrayList base class.
It is possible that this is by design and if so then it limits the value of Static Data I think.
BTW - I tried Syncfusion customer support but the person on the other end has no idea what I am asking. I hope someone here can help me. Thanks.
ADAdministrator Syncfusion Team June 23, 2008 07:08 PM UTC
In order to get the casting to work, I think you will need to have your derived class implement ICloneable. public class DerivedNumberList : ArrayList, ICloneable {
#region ICloneable Members
object ICloneable.Clone() { DerivedNumberList list = new DerivedNumberList(); list.AddRange(this.ToArray()); return list; }