Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
C#
protected void ddlselectdisease_SelectedIndexChanged(object sender, EventArgs e)
       {
           if (ddlselectdisease.SelectedItem.Value != null)
           {
               foreach(GridViewRow row in grdcareplan.Rows)
               {


               }
           }
       }
Posted
Comments
AshishChaudha 18-Dec-12 3:50am    
Need some more in your question. Insufficient data

1 solution

1. if you want to load the grid view on dropdownlist SelectedIndexChanged
C#
protected void ddlselectdisease_SelectedIndexChanged(object sender, EventArgs e)
{
    if (ddlselectdisease.SelectedItem.Value != null)
    {
        grdcareplan.DataSource = yourdatasourceobj;
        grdcareplan.DataBind();
    }
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900