On May 7, 2009, at 2:26 PM, Shao Sean wrote:

I included this type of code in the group script of the data grid object (group "Schema" in your case)

on mouseUp
 local theLine
 local theDataA

 put the dgHilitedLines of group "Schema" into theLine
 put the dgDataOfLine[theLine] of group "Schema" into theDataA

 put theDataA["Field Name"] into field "tFieldName"
 put theDataA["Field Type"] into field "tFieldType"
 put theDataA["Field ID"]   into field "tFieldID"
end mouseUp

This will work fine though you could also use the selectionChanged message like you would in a list field. Take a look at this lesson:

<http://revolution.screenstepslive.com/spaces/revolution_tools/manuals/datagrid/lessons/3641-How-Do-I-Get-Data-Associated-With-a-Line- >

Regards,

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Developer Resources: http://revolution.bluemangolearning.com

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to