title: Dropdown in dataview
body: <p>In my GridView, I have the following columns:</p>
  
  <pre><code>&lt;Columns&gt;  
      &lt;asp:BoundField DataField="report_type" HeaderText="Report Type"   
          SortExpression="report_type" /&gt;  
  
      &lt;asp:BoundField DataField="progress" HeaderText="Progress"   
          SortExpression="progress" /&gt;  
  
      &lt;asp:TemplateField HeaderText=".."&gt;
          &lt;ItemTemplate&gt;
              &lt;asp:DropDownList ID="DropDownList1" runat="server" DataValueField="progress"&gt;
                  &lt;asp:ListItem Value="0"&gt;Incomplete&lt;/asp:ListItem&gt;
                  &lt;asp:ListItem Value="1"&gt;Complete&lt;/asp:ListItem&gt;
              &lt;/asp:DropDownList&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:TemplateField&gt; 
  &lt;/Columns&gt;
  </code></pre>
  
  <p>The progress column is just there for demo purposes which will eventually be removed.  How do I get the value of the progress to select the correct itemlist in the dropdown?</p>
  
  <p>So if the value of <code>progress</code> is <code>1</code>, the dropdown should have <code>Complete</code> selected.  If the value of the <code>progress</code> is <code>0</code>, the dropdown should have <code>Incomplete</code> selected.</p>