Sometimes the requirements of a project are such that simple data bound forms are not enough. Consider a data bound listbox. Perhaps you need the listbox to, when an item is selected, report back the value of a different column in the same table bound to the listbox. That is, for example; the bound list of items in the listbox is generated from column 'Name' in table 'Objects'. When a listbox item is selected by the user, instead of subsequently using and working with the value of 'Name', perhaps you require the value of the column 'Parent' in table 'Objects'. The following example image demonstrates how to use the 'ListBox Tasks' window to make this happen. Special thanks to Kris Franzen, who is currently working for Wheaton Franciscan Healthcare, for his help in demonstrating this advanced data binding principle.
Download the full example project below. Run the project in 'Debug' mode, and double-click the list element of your choice. Notice what happens in the Output Window ...