title: How to bind a DataTable to a DropDownList using MVC RAZOR?
body: <p>My Model returns a collection of DataTables as shown below.</p>
  
  <p>How to bind a DataTable to a DropDownList using MVC RAZOR?</p>
  
  <p>For each DataTable, I'd like to create a table row and a drop down list for it.</p>
  
  <p>I tried the below code:</p>
  
  <pre><code> foreach (DataTable dataTable in Model.ParameterDataSources)
        {
              &lt;tr&gt;
                  &lt;th&gt;
                      Filter:
                  &lt;/th&gt;
                  &lt;td&gt;                    
                      @Html.DropDownList("ddlFilterDataSource", dataTable, "--Select One--") 
                  &lt;/td&gt;
              &lt;/tr&gt;
        }
  </code></pre>
  
  <p>How to achieve this?</p>