I have a bound combo box in a web user control. The web user control contains the DataSource2 control. I bind the combo box to the DataSource2 control. LivePersistence is turned off and I am handling PerformSelect.
After the control is bound, I need to insert an empty item into the combo box. What is the best practice for doing this? I tried putting this code in place but it didnt work.
protected void CountryDataSource_PerformSelect(object sender, PerformSelectEventArgs2 e)
{
LoadCountries(e);
CountryCombo.Items.Insert(0, new ListItem(string.Empty, string.Empty));
}
With regards to page / control event lifecycle, where does the PerformSelect fall?