On Friday 13 March 2009 4:40:27 pm Adrian Klaver wrote:
> On Friday 13 March 2009 4:17:41 pm johnf wrote:
> > 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....
>
> The 'list' type in a dGrid column does not act like a dDropDownList. I
> would have to go back to the archives, to see the explanation Ed gave.
> Basically if I remember correctly the first movement into a grid cell is
> "swallowed" by the cell. Its the second selection in the cell that actually
> gets the value. This probably explains the gotFocus() method not displaying
> the string value.

I found the thread it starts here:
http://leafe.com/archives/showMsg/383629

-- 
Adrian Klaver
[email protected]

_______________________________________________
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]

Reply via email to