Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to get a cell value, Is there a way to addEventListener to a specific cell in datagrid?

Community Beginner ,
Mar 01, 2014 Mar 01, 2014

I have a datagrid which I create it on run using AS3, flash CS6. it has many rows but only to columns.

Column 1(not editable) is a random math question and column 2 is an editable cell and is meant for writing the answer by the user.

Let's say I have 5 rows( 5 questions and  user will write 5 answers), and  the user completes the answers and clicks the check answer button.

How can I access to all 5 answers from their respective cells in datagrid?

Is there a way to addEventListener to a specific cell in datagrid? is this a possible solution?

Thanks for any help!

Best regards!

HR

TOPICS
ActionScript
316
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 01, 2014 Mar 01, 2014
LATEST

the datagrid class has a DataGridEvent.ITEM_EDIT_END event that has a rowIndex and colIndex you can use.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines