Hello,
I have created a grid to handle entering data. On some cells in the gird I have Ultra Combos as Editor Components and those Combo's have Editor =Buttons for creating "new" objects that are listed in the combo. In my code I have listed locations of inventory items in a gird of inventory items. The grid is created dynamically and I have written a handler for the Editor Button click event.
In this click event, I handle creation of a new location by opening a location form, allowing the user to enter data about the new location. When this form closes, I need to not only update the current combo box with the new data (I have this taken care of) but I also need to update a combo for a different cell for the Areas in the building.
While i am in the Button Click Event, how do I get the cell that houses the location combo so that I can also update the combo in another cell? Since the grid is created dynamically, I do not have access to a grid object on the form directly (primarily because it is buried in two tab controls) . Once I have the cell I can get to the other cell and its editor component to update it.
Thanks for any help you can give me.
Found my answer. Use the Context property of the button. This returns the cell that the combo is in.
I'm glad you figured it out. Let us know if you have any more questions.