protected void BindCat()
{
ddlCategory.DataSource= objProdCat.SelectAll();
ddlCategory.DisplayMember = "ProductCatName";
ddlCategory.ValueMember = "ProductCatId";
ddlCategory.Items.Insert(0, "Add new Category");
//MessageBox.Show(ddlCategory.SelectedValue.ToString());
}
我想为已绑定的组合框添加自定义选项,但这不起作用。它现在显示我的值1,2,3,4,5
如何将自定义字段添加到已绑定的组合框?