asp.net dropdownlist static listitems
<p>im working on an asp.net website with c#.
I have a dropdownlist with data from an sql database. The dropdownlist is on a gridview.</p>

<p>The dropdownlist is inside a templatefield, on the edititemtemplate.</p>

<p>The data is loaded on the dropdownlist and once a link button is pressed the dropdownlist is enabled for editing, with the corresponding value, .............but also all the other values from the column from the database are loaded there(this last thing is something I dont want).</p>

<p>The dropdownlist is binded on the GridView1_RowDataBound event:</p>

<pre><code>Control ctrlgridMonedaEdit = e.Row.FindControl("gridMonedaEdit");
            if (ctrlgridMonedaEdit != null)
            {
                DropDownList dd = ctrlgridMonedaEdit as DropDownList;
                //more code here
                dd.DataSource = dt;
                dd.DataValueField = "Moneda";
                dd.DataTextField = "Moneda";
                dd.DataBind();
                DataRowView rowView = (DataRowView)e.Row.DataItem;
                string tempDate = rowView["Moneda"].ToString();
                dd.SelectedIndex = dd.Items.IndexOf(dd.Items.FindByText(tempDate));
                sqlConn.Close();
            }
</code></pre>

<p>What I want is 3 values which must load when the dropdownlist is enabled for editing. And also that the corresponding value stay selected.
I have tried this:</p>

<pre><code>&lt;EditItemTemplate&gt;
      &lt;asp:DropDownList Width="90" runat="server" id="gridMonedaEdit" AutoPostBack="true" Enabled ="true"   &gt;
         &lt;asp:ListItem Value="MONEDA"&gt; MONEDA &lt;/asp:ListItem&gt;
                  &lt;asp:ListItem Value="USD"&gt; USD &lt;/asp:ListItem&gt;
                  &lt;asp:ListItem Value="MONEDA/USD"&gt; MONEDA/USD &lt;/asp:ListItem&gt;
      &lt;/asp:DropDownList&gt;                          
&lt;/EditItemTemplate&gt;
</code></pre>

<p>But these values do not show up.</p>

<p>How can I solve this?</p>

<p>Thanks..</p>
