Hello,
New here, trying this forum out as my other one is primarily VFP based.
I have a form with multiple textboxes, a combobox, and a checkbox. These are all bound to a data table. The problem I am having is the fact that when the checkbox is checked true, I want to disable the combobox and set the index to 0.
This appears to work OK on the form, but it seems that when I try to save it, the index of the combobox pops back to whatever it was before I set it to 0. The data table doesn't seem to reflect the cboBox.SelectedIndex = 0 command I made. It works when I MANUALLY click on the combobox and select the top value, but not when I attempt to do it through code.
Any advice would be greatly appreciated. TIA!
MAC
New here, trying this forum out as my other one is primarily VFP based.
I have a form with multiple textboxes, a combobox, and a checkbox. These are all bound to a data table. The problem I am having is the fact that when the checkbox is checked true, I want to disable the combobox and set the index to 0.
This appears to work OK on the form, but it seems that when I try to save it, the index of the combobox pops back to whatever it was before I set it to 0. The data table doesn't seem to reflect the cboBox.SelectedIndex = 0 command I made. It works when I MANUALLY click on the combobox and select the top value, but not when I attempt to do it through code.
Any advice would be greatly appreciated. TIA!
MAC