We have a datagrid which is bound to a recordset and a template column containing a dropdown list of options (also bound to a recordset) and is rather similar to the example on the following page, with the exception that the dropdown is permanently visible.
http://aspnet.4guysfromrolla.com/demos/dgExample15.aspx
What I need is to set the value of the dropdown, based on one of the columns in the main datagrid.
MAIN TABLE
Name
Subject
Date
CategoryID
CATEGORY TABLE
CategoryID
Description
So, you can see that the dropdown contains the data from the category table, but the default/selected value on each row should be based on the CategoryID from the main table.
Any ideas on how to achieve this?
Regards,
Sean