hi, i have an object A that have inside another object B(not a list just an object), so when i put:
Dim objTypeA As New ObjectA ultraCombo.DataSource = objTypeA .getList() //this return a list where each element is an object A that have an object B inside it. ultraCombo.DisplayMember = "Description" ultraCombo.ValueMember = "Code"
but when i make click over the ultracombo it shows me the grid with the list of the object A but in the property of the object B it shows me the name of the assembly of the object B, how can i tell to the ultracombo that i want to show a specific property of the object B or it is posible to show all the properties of the object B??
thanks
If Object B is a List<T> or BindingList<T>, then the grid will display it as a child band, not as a single column in the parent band.
thanks!!!, and what about if the Object B is a List of itself???
thanks...
The grid will call the ToString method on Object B and display whatever it returns. So the easiest thing for you to do is override ToString on Object B and return what you want.