How Can I Store An Option Menu Value When The User Makes a Selection?
This lesson will demonstrate how to update the data associated with a row in a data grid when the user makes a selection from an option menu.
Example Data Grid
Edit Column Behavior
We can add a a menuPick handler to the column behavior script in order to accomplish our goal. When the user makes a selection from the option menu the menuPick message is sent by the engine. We can then use the SetDataOfIndex command to update the value for the column. The parameters for SetDataOfIndex are the index, the column name and the new value. Since the above script is in a column behavior we can use the dgIndex of me (1) for the index and the dgColumn of me (2) for the column name.