>System.Int32 iselectedItemIndex = this.lstIndividualDelay.SelectedIndex; >this.lstIndividualDelay.SelectedIndex = 0; // without this line here it will throw an error if I delete the last element and try to select one of the remaining elements >this.lstIndividualDelay.DataSource = null; > >this.oIndividualDelayCollection.Remove(this.oIndividualDelayCollection[iselectedItemIndex]); >this.lstIndividualDelay.DataSource = this.oIndividualDelayCollection; >>