//After binding comboBox1.Items.Insert(0, "Select"); comboBox1.SelectedIndex = 0;
ComboBox1.Items.Insert(0, "Select Items"); ComboBox1.SelectedIndex = 0;
if you want need to add "select" value,then you'll need to manually add "select" item to your data source and set that as the default item.
ComboBox obj = (ComboBox)comboBox1; DataTable dt1 = (DataTable)obj.DataSource; DataTable dt2=dt1.Copy(); dt1.Clear(); DataRow dr = dt1.NewRow(); dr[1] = "select word"; dr[0] = 0; dt1.Rows.Add(dr); dt1.Merge(dt2);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)