On Friday 13 March 2009 02:24:37 pm Adrian Klaver wrote: > AutoBind I'm just using the default autoBind = True but I also like to bind my events manually.
I think I'm very close to a solution. I have created two methods one to handle the grid selection and the other to handle the state dropdown "Hit". For the state dropdown I did not use ValueChanged because the value in the state dropdown was constantly changing. I only want my method to fire if I selected a new state. I discovered that the InteractiveChange did not fire when selecting anything from the state dropdown and ended up using the "Hit" event. I also was unable to use "gotFocus" for the county dropdown. "gotFocus" did not display the selected data (a string) in the control after making a selection from the list. I do not know why. I also had to set the value of county to "<None>" (the string) when changing the state dropdown. This was because I was changing the choices in the dropdown and the old value was no longer in the Choices values. For the grid I ended with "GridCellSelected". Because I am handling the events with different methods it now appears to work. But I know my next form will require three controls that depend on each other and I hope I'm able to use the same events to control the "Choices" of the dropdowns. But I wonder.... -- John Fabiani _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
