views:

121

answers:

1

hi i m using 5 combobox in my asp.net 3.5 c# project .here i want remove item from other combobox which item is selected in other combobox.

A: 

In the OnSelectedIndexChanged event, just call the comoboBox.Items.Remove method.

As the commenter below points out, make sure you set AutoPostBack = True so events fire when you actually change your selection.

Jack Marchetti
i think this will only work when `AutoPostBack` is set to `true`
Andreas Niedermair