Hello!
My RadComboBox is filled by a SQLDataSource. After that I want to Insert a special item ("create new"). This works fine, but I need the Item at the first position in my ComboBox. How can i do this?
My Code:
protected void RadComboBox1_DataBound(object sender, EventArgs e)
{
RadComboBoxItem item = new RadComboBoxItem(NEU_ANLEGEN, "new");
item.ForeColor = System.Drawing.Color.Red;
((RadComboBox)sender).Items.Add(item);
}
My RadComboBox is filled by a SQLDataSource. After that I want to Insert a special item ("create new"). This works fine, but I need the Item at the first position in my ComboBox. How can i do this?
My Code:
protected void RadComboBox1_DataBound(object sender, EventArgs e)
{
RadComboBoxItem item = new RadComboBoxItem(NEU_ANLEGEN, "new");
item.ForeColor = System.Drawing.Color.Red;
((RadComboBox)sender).Items.Add(item);
}