public void Load_ApprovalGroup() { int Type = 0; DataSet ds2 = BLL_POLOG_Register.POLOG_Get_AccountClassification(UDFLib.ConvertIntegerToNull(GetSessionUserID()), null); DDLGroupFilter.DataSource = ds2.Tables[1]; DDLGroupFilter.DataTextField = "Approval_Group_Name"; DDLGroupFilter.DataValueField = "Approval_Group_Code"; DDLGroupFilter.DataBind(); DDLGroupFilter.Items.Insert(0, new ListItem("-ALL-", "0")); }
public void Load_ApprovalGroup() { DataTable dt = objBLLAppLimit.Get_Approval_Group(); DDLGroupFilter.DataSource = dt; DDLGroupFilter.DataTextField = "Group_Name"; DDLGroupFilter.DataValueField = "Group_ID"; DDLGroupFilter.DataBind(); DDLGroupFilter.Items.Insert(0, new ListItem("-ALL-", "0")); DDLGroup.DataSource = dt; DDLGroup.DataTextField = "Group_Name"; DDLGroup.DataValueField = "Group_ID"; DDLGroup.DataBind(); DDLGroup.Items.Insert(0, new ListItem("-Select-", "0")); }