Hi Guys, I've following problem: I have a grid view which gets data from a SQL server through a DataSet and an ObjectDataSource. The DataSet holds queries to many tables. Now I try to show all the data in the grid view. When I try to show the data through a DDL, I get following error: 'DDLStatusItem' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value
<asp:TemplateField HeaderText="Status" SortExpression="Status">
<ItemTemplate>
<asp:DropDownList ID="DDLStatusItem" runat="server" OnInit="DDLStatusItem_OnInit" DataSourceID="ODSFilterGridByStatus" DataTextField="Beschreibung" DataValueField="StatusId" SelectedIndex='<%# Eval("StatusId") %>' SelectedValue='<%# Bind("Status") %>'>
</asp:DropDownList>
The ODS of the ddl is different from the gridview one. When I try to access the GV DataItems "StatusId" and "Status", it dosen't break. Does somebody know, what's my problem is? Have a nice weekend!