im using vb.net.
i fetch column data using dataset and added in selecteditems through for loop
For i = 0 To DS.Tables(0).Rows.Count - 1
If DS.Tables(0).Rows(I).Item("TRD_GROUPBY") <> 0 Then
comboGrouped.SelectedItems.Add(DS.Tables(0).Rows(i).Item("TRD_display_name"))
End If
Next
And, I try for refreshing the selected items in combo box by using comboGrouped.selecteditems.clear() and it returns an error "InvalidArgument=Value of '-1' is not valid for 'index'"
it loads perfect on form load for first time , but after clicking or reloading the same function then returns that error