title: How to set selected view in gridview
body: <p>Hi it may be a simple suggestion, but its great for me. Actually i tried to set selected value through inline code. if the list items are int(1,2,..) it is working but if i use char(A,B,..) it shows "invalid because it does not exist in the list of items".</p>
  
  <pre><code>    &lt;asp:TemplateField HeaderText="SinterLottype" SortExpression="SinterLottype"&gt;
                  &lt;EditItemTemplate&gt;
                      &lt;asp:DropDownList ID="ddSntrtyp" runat="server" DataValueField="SinterLottype"  SelectedValue ='&lt;%# Bind("SinterLottype") %&gt;'  &gt;
                          &lt;asp:ListItem&gt;A&lt;/asp:ListItem&gt;
                          &lt;asp:ListItem&gt;B&lt;/asp:ListItem&gt;
  
                      &lt;/asp:DropDownList&gt;
                  &lt;/EditItemTemplate&gt;
  </code></pre>