This question is locked. New answers and comments are not allowed.
I created the following classes through the domain model:
Customer
-CustomerId int
-Description: string
-Orders: IList <Order>
Order
OrderId-int
-OrderDate: DateTime
-Customer: Customer
I have a RadGrid that is connected to a OpenAccessDataSource to data search of the Order class, and created a template for edit/insert of this data grid. The question is how to configure a RadCombobox in this template to edit the column Customer. I set the DataSourceID property to another OpenAccessDataSource seeking Customer data, DataTextField to Description and DataValueField for CustomerId. The doubt is how to turn the property Order->Customer to the ComboBox, because it is an object and do not have the integer foreign key in the Order class CustomerId.
I believe it is a basic question, but researched a lot and could not understand.
grateful for the attention
Elvis
Customer
-CustomerId int
-Description: string
-Orders: IList <Order>
Order
OrderId-int
-OrderDate: DateTime
-Customer: Customer
I have a RadGrid that is connected to a OpenAccessDataSource to data search of the Order class, and created a template for edit/insert of this data grid. The question is how to configure a RadCombobox in this template to edit the column Customer. I set the DataSourceID property to another OpenAccessDataSource seeking Customer data, DataTextField to Description and DataValueField for CustomerId. The doubt is how to turn the property Order->Customer to the ComboBox, because it is an object and do not have the integer foreign key in the Order class CustomerId.
I believe it is a basic question, but researched a lot and could not understand.
grateful for the attention
Elvis