protected void myComboBox_DataBound(object sender, EventArgs e) { myComboBox.Items.Add("All", "0").Index = 0; myComboBox.SelectedIndex = 0; }
You can also do it at client side by using the following code
comboBox.ClientSideEvents.Init = "function(s, e) {s.InsertItem(0, '(ALL)', '');}";
No comments:
Post a Comment