I'm having some trouble figuring out how to use the combobox column. In my gridview i'm trying to display a List(Of OrderLine).
the list is filled with "OrderLine" Objects, with the following property's:
unitcount as Integer,
unitPrice as Double,
product as Product - The product object has an id and name field, being respectively an integer and String.
The product column is the combobox column, and is filled by setting the datasource als a List(Of Product)
When viewing the list, I cant seem to get the product column to show the product name. Furthermore when i try to add a new line, I can't get the value to be the product object either. Is there a way i can set the valuemember as the column object itself, instead of one of its properties?
the list is filled with "OrderLine" Objects, with the following property's:
unitcount as Integer,
unitPrice as Double,
product as Product - The product object has an id and name field, being respectively an integer and String.
The product column is the combobox column, and is filled by setting the datasource als a List(Of Product)
When viewing the list, I cant seem to get the product column to show the product name. Furthermore when i try to add a new line, I can't get the value to be the product object either. Is there a way i can set the valuemember as the column object itself, instead of one of its properties?