>Ok, Luís, back to your initial question(s):
>
>>
[Part 1] I need to create 2 comboboxes in a grid with bindevents (I need to use Bindevents, because i dont have access to code source) , and
[Part 2]when I select an item in combo 1, the second combobox returns the filtered records.
>> both combobox's recordsourcetype is SQL and will return a cursor.
>
>Starting with Part 1
>
>You said later on the thread that you can edit the form. Can you add controls freely, or the only thing you can do is to work on the code of existing controls (like the grid)?
>
>Hello António,
>
>Yes , i can add controls (textbox, editbox, grids, ..). i can also with this code add new fields on the original grid. Ex:
> [...]
>
>My intention is to create a Bindevent in a grid (not the original one) and write an Xbase expression to execute, in this case create 2 combobox, as the grid is always refreshed, when starting with the Form the 2 combobox will be created dynamically.
>The next trick will be to control when selecting an option on the first to be able to filter the content on the second.
>
>I hope I managed to answer your question in the best way.
>
>Best regards,
>Luis
Luís,
I'm not confident that I understood your requirements, but perhaps trying to move on will help with that.
BINDEVENT() links a method in an object to (the same or other) object events and methods or (the same or other) object property-related events.
So, what's the handled object? What is its event/method/property that you want to handle? And what is the object that will handle the event?
----------------------------------
António Tavares Lopes