Hello,
I am using Devexpress components on winforms. I want to load all the records in CustomerType table in an EntityCollection object and below is the code I am using. If I am wrong please guide me.
EntityCollection<CustomerTypeEntity> customerTypeCollection =
new EntityCollection<CustomerTypeEntity>(new CustomerTypeEntityFactory());
DataAccessAdapter dataAccessAdapter = new DataAccessAdapter();
dataAccessAdapter.FetchEntityCollection(customerTypeCollection, null);
The above code seems working fine and loaded some objects inside the collection. Now the issue is that how can I bind my returned collection of CustomerType to the ComboBox.
The CustomerType table is having 2 fields. CustomerTypeId, CustomerType. Now in the combobx I want to display the Customer Type which is a friendly description and in the value I want to use the CustomerTypeId. Please help how to achieve this.
Thanks and regards