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.

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    I don't think there is any way to get the list from the grid. You'd have to essentially duplicate the code the grid is using and go directly to the BindingManager. Or, another option would be to examine your DataSource directly, assuming it exposes the child lists.

Reply Children
No Data