I have a dropdown which is filled by data(from store proc) I used this to filter the datagrid. It is showing All record when page load then user can choose from dropdown. My problem is after choosing any choice when user comes back to—All—it does not show
–ALL—record. It shows nothing.
This is my code for polulating dropdown:
private void populate_GetAgencyList(string UserName,int PartnerId,int AgencyId,string RoleName)
{
ApplicationStatusMV mv = new ApplicationStatusMV();
var status = mv.GetAgencyListbaseRole(UserName, PartnerId, AgencyId, RoleName);
ddlAgency.DataSource = status;
ddlAgency.DataTextField = "Name";
ddlAgency.DataValueField = "_IdxIdentity";
ddlAgency.DataBind();
ddlAgency.Items.Insert(0, new ListItem("---All---", "-1"));
}
and this is the code when dro ...
Go to the complete details ...