title: Set value in gridview for dropdownlist template. Asp.Net
body: <p>I have problem with DropDownList template in Grid View, after I go in edit mode drop down have to be selected by current item instead of default value.</p>
  
  <pre><code>&lt;asp:TemplateField HeaderText="Tour Type"&gt;
      &lt;EditItemTemplate&gt;
          &lt;asp:DropDownList AppendDataBoundItems="true" DataSourceID="dropDownListSqlDataSource" runat="server" DataValueField="idTypetour" DataTextField="title"&gt;&lt;/asp:DropDownList&gt;
      &lt;/EditItemTemplate&gt;
      &lt;ItemTemplate&gt;
          &lt;%#Eval("typeTitle")%&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>I tried to use SelectedValue="&lt;%#Eval("typeTitle")%>", but has no results.</p>