Member
75 Points
466 Posts
Nov 23, 2020 06:04 AM|NJ2|LINK
In the code below, I see myArrayList contains several values in it and they are added to DataValueField and DataTextField but the dropdownlist is empty.
What did I miss?
ArrayList myArrayList = ConvertDataSetToArrayList(); foreach (Object row in myArrayList) { ddlProdType.DataValueField = ((DataRow)row)["ProdNumber"].ToString(); ddlProdType.DataTextField = ((DataRow)row)["ProdType"].ToString(); }
Member
75 Points
466 Posts
Populate DropdownList from an ArrayList
Nov 23, 2020 06:04 AM|NJ2|LINK
In the code below, I see myArrayList contains several values in it and they are added to DataValueField and DataTextField but the dropdownlist is empty.
What did I miss?