Ok. I understand. But how does the drop down know what value to display, when I use managed code to populate the dropdown.
For example, I bind a secondary datasource to the dropdown by the datasource wizard. I add an access database and if I look at the created sql it looks like
select [id],[course_name] from [courses] as [courses]
But now I want to use a more complex sql statement within my C# code.
"select c.course_name,c.id "
+"from courses c, "
+" (select count(id) as part, courseID as cID from course_participants group by courseID) d "
+"where c.participants > d.part "
+" and c.id = d.cID "
+"group by c.course_name, c.id"
How does the dropdown know to be updated correctly? Or how does the sql have to look like in order to work? Do the columns have to be named the same way? And what do I do if I want to populate the dropdown by concatenating the retrieved values, e.g. course name and course id?