ASP, DropDownList grid view
<p>I'm new to <code>ASP MVC</code>. I want to load data from a database in <a href="https://i.stack.imgur.com/Js737.png" rel="nofollow noreferrer">DropDownList</a> into a <code>gridview</code>. But DATA cannot load.</p>

<p><strong>HTML CODE</strong></p>

<p>
    
        
        
            
            
            </p>

<pre><code>              &lt;asp:BoundField DataField="id" HeaderText="Code"&gt;
                &lt;HeaderStyle Width="106px" HorizontalAlign="center" BorderColor="White" BorderWidth="1" /&gt;
                &lt;ItemStyle Width="102px" HorizontalAlign="center" BorderWidth="1px" /&gt;
            &lt;/asp:BoundField&gt;
            &lt;asp:BoundField DataField="name" HeaderText="Nom Cours"&gt;
                &lt;HeaderStyle Width="300px" HorizontalAlign="left" BorderColor="White" BorderWidth="1" /&gt;
                &lt;ItemStyle Width="300px" HorizontalAlign="left" BorderWidth="1px" /&gt;
            &lt;/asp:BoundField&gt;



            &lt;asp:templatefield HeaderText="Prix / Heure (HTG)"&gt;
            &lt;HeaderStyle Width="160px" HorizontalAlign="center" BorderColor="White" BorderWidth="1" /&gt;
            &lt;ItemStyle Width="160px" HorizontalAlign="center" BorderWidth="1px" /&gt;
                &lt;itemtemplate&gt;     
                    &lt;asp:DropDownList ID="ddlprice" Width="160px" HorizontalAlign="center"  runat="server"&gt;

                    &lt;/asp:DropDownList&gt;                         
              &lt;/itemtemplate&gt;
            &lt;/asp:templatefield&gt;          


             &lt;asp:templatefield HeaderText="Sélectionner"&gt;
            &lt;HeaderStyle Width="300px" HorizontalAlign="center" BorderColor="White" BorderWidth="1" /&gt;
                  &lt;ItemStyle Width="300px" HorizontalAlign="center" BorderWidth="1px" /&gt;
                &lt;itemtemplate&gt; 
             &lt;asp:checkbox ID="cbSelect" CssClass="gridCB"  runat="server" HorizontalAlign="center"&gt;&lt;/asp:checkbox&gt;                
              &lt;/itemtemplate&gt;
            &lt;/asp:templatefield&gt;
        &lt;/Columns&gt;
        &lt;FooterStyle BackColor="Tan" Height="30px" HorizontalAlign="Center" /&gt;
        &lt;HeaderStyle BackColor="Navy" Font-Bold="True" Height="22px" HorizontalAlign="Left"
            ForeColor="WhiteSmoke" BorderColor="Navy" VerticalAlign="Top" BorderWidth="2px" Width="910px" Font-Size="Small" /&gt;
        &lt;PagerSettings Mode="NumericFirstLast" /&gt;
        &lt;PagerStyle BackColor="SkyBlue" ForeColor="WhiteSmoke"
            HorizontalAlign="Center" /&gt;
        &lt;RowStyle Height="5px" Font-Size="Smaller" /&gt;
        &lt;SelectedRowStyle BackColor="Aquamarine" ForeColor="GhostWhite" BorderColor="Silver"
            BorderStyle="None" /&gt;
        &lt;SortedAscendingCellStyle BackColor="SkyBlue" /&gt;
        &lt;SortedAscendingHeaderStyle BackColor="#DAC09E" /&gt;
        &lt;SortedDescendingCellStyle BackColor="#E1DB9C" /&gt;
        &lt;SortedDescendingHeaderStyle BackColor="#C2A47B" /&gt;
    &lt;/asp:GridView&gt;
&lt;/div&gt;
</code></pre>

<p>  </p>

<p><strong>C# CODE</strong></p>

<pre><code>   protected void Page_Load(object sender, EventArgs e)
    {

        if (!Page.IsPostBack)
        {
            ddlClassroom.SelectedValue = "-1";

            BindDataGridClass();
            BindDataGridCourse();
            loadListPrice();
        }

private void loadListPrice()
    {
        List&lt;Course&gt; listPrice = Course.getListCoursePriceOrdered();
        ddlprice.DataValueField = "id";
        ddlprice.DataTextField = "price";
        ddlprice.DataSource = listPrice;
        ddlprice.DataBind();
        //ddlprice.Items.Insert(0, new DropDownListItem("--Selectionner--", "-1"));
        ddlprice.SelectedValue = "0";

    }
</code></pre>