How to display in value in dropdown list in grideview on selected index change
<p>I have a dropdown down after postback i want to bind the second dropdown . i get the value but that is not displayed in the second  data:EntityDropDownList  .</p>

<pre><code> &lt;ItemTemplate&gt;
                                                            &lt;data:EntityDropDownList runat="server" ID="dataServiceTypeId" Enabled="false"  DataSourceID="ServiceTypeIdServiceTypesDataSource"
                                                                DataTextField="ServiceCode" DataValueField="ServiceTypeId" SelectedValue='&lt;%# Bind("ServiceTypeID") %&gt;'
                                                                AppendNullItem="true" Required="true" NullItemText="&lt; Please Choose ...&gt;" ErrorText="Required" /&gt;
                                                            &lt;data:ServiceTypesDataSource ID="ServiceTypeIdServiceTypesDataSource" runat="server"
                                                                SelectMethod="GetAll" /&gt;
                                                        &lt;/ItemTemplate&gt;
                                                        &lt;EditItemTemplate&gt;
                                                        &lt;data:EntityDropDownList runat="server" ID="dataServiceTypeId"  DataSourceID="ServiceTypeIdServiceTypesDataSource"  OnSelectedIndexChanged="Service_SelectChange" AutoPostBack="true" 
                                                                DataTextField="ServiceCode" DataValueField="ServiceTypeId" SelectedValue='&lt;%# Bind("ServiceTypeID") %&gt;'
                                                                AppendNullItem="true" Required="true" NullItemText="&lt; Please Choose ...&gt;" ErrorText="Required" /&gt;
                                                            &lt;data:ServiceTypesDataSource ID="ServiceTypeIdServiceTypesDataSource" runat="server"
                                                              SelectMethod="GetAll" /&gt;

                                                        &lt;/EditItemTemplate&gt;
                                                    &lt;/asp:TemplateField&gt;

                                                    &lt;asp:TemplateField HeaderText="Default"&gt;
                                                        &lt;ItemTemplate&gt;
                                                            &lt;asp:CheckBox ID="chkDefault" Checked='&lt;%# Bind("IsDefault") %&gt;' Enabled="false"  runat="server" /&gt;
                                                        &lt;/ItemTemplate&gt;
                                                        &lt;EditItemTemplate&gt;
                                                         &lt;asp:CheckBox ID="chkDefault" Checked='&lt;%# Bind("IsDefault") %&gt;'    runat="server" /&gt;

                                                        &lt;/EditItemTemplate&gt;
                                                    &lt;/asp:TemplateField&gt;
                                                    &lt;asp:TemplateField HeaderText="Plan"&gt;
                                                        &lt;ItemTemplate&gt;

                                                             &lt;data:EntityDropDownList runat="server" ID="dataPricePlanId" Width="200px"  /&gt;
                                                        &lt;/ItemTemplate&gt;
                                                        &lt;EditItemTemplate&gt;
                                                             &lt;data:EntityDropDownList runat="server" ID="dataPricePlanId" Width="200px" AppendNullItem="true" NullItemText="&lt; Please Choose ...&gt;"  /&gt;

                                                        &lt;/EditItemTemplate&gt;
                                                    &lt;/asp:TemplateField&gt;
</code></pre>

<p>And my code is this </p>

<pre><code> protected void Service_SelectChange(object sender, EventArgs e)
{
    dataPricePlanId.Items.Clear();

    string sValue = ((EntityDropDownList)sender).SelectedValue;

    int ServiceTypeId = Convert.ToInt32(sValue);
    TList&lt;PricePlans&gt; _pricePlans = _pricePlanService.GetByServiceTypeId(ServiceTypeId);
    _pricePlanService.DeepLoad(_pricePlans);
    if (_pricePlans.Count &gt; 0)
    {
        dataPricePlanId.DataSource = _pricePlans;
        dataPricePlanId.DataTextField = "Description";
        dataPricePlanId.DataValueField = "PricePlanId";
        dataPricePlanId.DataBind();

    }
    else
    {
        dataPricePlanId.Items.Insert(0, new ListItem("No Plan For this Service", "0"));


    }
}
</code></pre>

<p>i get value but my grid is not binding in second dropdownlist. Can you please help me . </p>
