Hi Sandraa, I have done this many times. I don't know exactly why it does not work for you (did not try it out), however, I want to show you a snippet of my working code. Besides being C# the main difference is that I use declarative syntax only: First the dropdown declaration in the .aspx file: SelectedValue='<%# Bind("fake_flag1")%>' ID="ddl_test1" DataSourceID="TestDS" DataTextField="someDescription" DataValueField="someID" runat="server">
Next the declaration of the datasource for the above dropdown, which is different of the detailsview the dropdown is in: SelectCommand="SELECT * FROM TEST">
Hope this helps. Maybe the problem in your code is the point in time when you try to set the datasource? Cheers, Marcelo
-- Marcelo Emmerich Software Development - Computer Graphics - Mobile Computing http://bytethings.blogspot.com