Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2490
Band.List
posted

Hi,

I Need create Object to my list of my band.

I try to use

ObjType = Activator.CreateInstance(Band.List.GetType.GetGenericArguments(0))

But I can use Band.List because is the property is Friend.

I can use grid.Datasource.GetType, is work for first band.

But When I need child band I can't use this type.


My code is


For Each band as UltraGridBand in grid.DisplayLayout.Bands

   ObjType = Activator.CreateInstance(Band.List.GetType.GetGenericArguments(0))

   ...

   ...

Next



Do you have Get methode to obtain my band list ?

(What as really need is the PropertyInfo of my class (ObjType.GetType.GetProperties))


François.