Setting the Selectedindex/selectedvalue of a Dropdownlist in a repeater not working
<p>I have a repeater with a DropDownList in it. I set the datasource of this list in the itembound event en set the selectedindex. When I debug the selectedindex is set, but when the page is done loading for all the item the default item is selected.</p>

<p>This is my code:</p>

<pre><code> protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
    {
        var ddl = (DropDownList)e.Item.FindControl("DataFeedItems");
        ddl.DataSource = FilterDropDownData();
        ddl.DataTextField = "ColumnName";
        ddl.DataValueField = "ColumnName";
        ddl.DataBind();
        ddl.SelectedValue = "Select";
        ddl.SelectedIndex = 28;
    }
</code></pre>

<blockquote>
<pre><code>  protected DataTable FilterDropDownData()
    {
        var importedFeedColums = I make the table here;
        DataRow newRow = importedFeedColums.NewRow();
        newRow[0] = "Selecteren";
        importedFeedColums.Rows.Add(newRow);
        return importedFeedColums;
    }
</code></pre>
</blockquote>

<p>I Als tried to using the Databound even of the dropdown list, but this didnt work either:</p>

<pre><code>    protected void DataFeedItems_DataBound(object sender, System.EventArgs e)
    {
        var ddl = (DropDownList) (sender);
        ddl.SelectedValue = "Selecteren";
        ddl.Items[28].Selected = true;

    }

 &lt;asp:Repeater ID="Repeater1" runat="server" 
            onitemdatabound="Repeater1_ItemDataBound"&gt;
            &lt;ItemTemplate&gt;
                &lt;li&gt;
                &lt;label&gt;&lt;%# DataBinder.Eval(Container.DataItem, "ColumnName") %&gt;&lt;/label&gt;                       
                    &lt;asp:DropDownList ID="DataFeedItems" ClientIDMode="Static" runat="server" DataSource='&lt;%# FilterDropDownData() %&gt;'
                        DataTextField="ColumnName" DataValueField="ColumnName"   OnDataBound="DataFeedItems_DataBound" &gt;
                    &lt;/asp:DropDownList&gt;
                    &lt;input id="Hidden1" runat="server" clientidmode="Static" type="hidden" value='&lt;%# DataBinder.Eval(Container.DataItem, "ColumnName") %&gt;' /&gt;
                &lt;/li&gt;
            &lt;/ItemTemplate&gt;
        &lt;/asp:Repeater&gt;
</code></pre>

<p>When I post the form I can get the selectedvalue and text of each DropDownList. What am I doing wrong</p>
