Skip to main content
Participating Frequently
March 2, 2014
Question

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

  • March 2, 2014
  • 1 reply
  • 327 views

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

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
March 2, 2014

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