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
...
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.
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.
Hi Mike,
Thank for your answer.
I change my logic.
Francois.