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.
Unfortunately, activation email could not send to your email. Please try again.

StaticData Class

Thread ID:





74629 Jun 23,2008 12:03 PM Jun 23,2008 03:08 PM Windows Forms 1
Tags: GridControl
Tim Mostad
Asked On June 23, 2008 12:03 PM

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:

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.

Administrator [Syncfusion]
Replied On June 23, 2008 03:08 PM

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();
return list;




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.

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.