A type of Windows form that I frequently need to use has a combobox at the top and a number of textboxes and checkboxes whose values should change depending upon the selected item in the combobox. I can bind the combobox to a column in a table in a DataSet, and I would like the textbox and checkbox values to display the values of other columns in the same row.
I have the feeling that I should be able to bind the textboxes and checkboxes to the other columns in my DataSet table, and the CurrencyManager object should keep track of everything for me. However, all the CurrencyManager and BindingContext examples I have seen to demonstrate usage simply illustrate how to use the CurrencyManager.Position property to advance through the DataSet table one or more rows at a time--what I want to do is go to some specific row. Is there some relationship between the CurrencyManager.Position and the DataSet table index? Can anyone provide a code snippet?
Thanks in advance.
I have the feeling that I should be able to bind the textboxes and checkboxes to the other columns in my DataSet table, and the CurrencyManager object should keep track of everything for me. However, all the CurrencyManager and BindingContext examples I have seen to demonstrate usage simply illustrate how to use the CurrencyManager.Position property to advance through the DataSet table one or more rows at a time--what I want to do is go to some specific row. Is there some relationship between the CurrencyManager.Position and the DataSet table index? Can anyone provide a code snippet?
Thanks in advance.