G
Guest
I'm trying to implement the age-old task of placing a combobox in a datagrid's tablestyle like I usually do in Windows Forms. I've seen an example at http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=941 but still it isn't what I need
There are two tables: one is the source of the datagrid (Customers) with the field "id_customer_type", essentially a foreign key to a lookup table (Customer_Types), which contains the columns "id_customer_type" (the PK) and "name" (readable text)
Is there a way to set up a combobox with "datamember" and "valuemember", so the user sees the "pretty name" of the customer type instead of it's unique id? If not, what other ways are there to do this? The source table is sent to a Web Service that expects a certain type of dataset, so adding more (and redundant) columns with the "name" field seems going in the wrong direction
There are two tables: one is the source of the datagrid (Customers) with the field "id_customer_type", essentially a foreign key to a lookup table (Customer_Types), which contains the columns "id_customer_type" (the PK) and "name" (readable text)
Is there a way to set up a combobox with "datamember" and "valuemember", so the user sees the "pretty name" of the customer type instead of it's unique id? If not, what other ways are there to do this? The source table is sent to a Web Service that expects a certain type of dataset, so adding more (and redundant) columns with the "name" field seems going in the wrong direction