About this document
Using SelectedIndexChanged in C# Lists by Carlos Montenegro is a document available to read on EtoBox.
The SelectedIndexChanged event of a ListBox or ComboBox can be used to populate a second ListBox based on the selection in the first. When an item in the first ListBox is selected, the event fires and code can check the SelectedIndex to determine which item was chosen. Based on the selection, different items can be loaded into the second ListBox. For example, selecting "Credit Card" could load credit card options, while selecting "Cheque" loads cheque options.
- Author
- Carlos Montenegro
- Language
- EN