ComboBox.DataSource = DataSet1.Tables(0) ComboBox.DisplayMember = "AgentName" ComboBox.ValueMember = "AgentId"
ComboBox.Items.Add("Select Agent")
ComboBox.Items.Add("Select Agent") ComboBox.DataSource = DataSet1.Tables(0) ComboBox.DisplayMember = "AgentName" ComboBox.ValueMember = "AgentId" ComboBox.DataBind() // Add This Line into Your Code ComboBox.SelectedValue = "Select Agent"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)