I may be barking up the wrong tree here and this might not be possible, but if you don't ask you might never know.
I have a page on my app (VB.NET 2008) that has a group of four combo boxes designed to allow the user to drill down and select more and more granular data until in the last box they have selected a specific value that can be written to a table. For argument's sake lets say the boxes are for state, city, street and address #.
When State is selected and the box is closed up, the SelectedItem_Change even fires and a new dataset is generated for City values, which then becomes the datasource for the City combo box. No problem there, works fine.
Sometimes though the new dataset only returns one record, and if that's the case it seemes silly to force the user to open the City box and click on the single value to fire off the next query and load the Street combo box. So when the dataset returns just one value, I'd like to cause the combo box to automatically select that record and fire off the code that loads the next value based on that selected value.
Problem is I have not hit on the right combination of events to detect this and make it happen. I'm hoping someone out there might have done this before and can offer some guidance?
Thanks if you can help
Craig
CraigHartz
I have a page on my app (VB.NET 2008) that has a group of four combo boxes designed to allow the user to drill down and select more and more granular data until in the last box they have selected a specific value that can be written to a table. For argument's sake lets say the boxes are for state, city, street and address #.
When State is selected and the box is closed up, the SelectedItem_Change even fires and a new dataset is generated for City values, which then becomes the datasource for the City combo box. No problem there, works fine.
Sometimes though the new dataset only returns one record, and if that's the case it seemes silly to force the user to open the City box and click on the single value to fire off the next query and load the Street combo box. So when the dataset returns just one value, I'd like to cause the combo box to automatically select that record and fire off the code that loads the next value based on that selected value.
Problem is I have not hit on the right combination of events to detect this and make it happen. I'm hoping someone out there might have done this before and can offer some guidance?
Thanks if you can help
Craig
CraigHartz