4 Replies Latest reply on Jan 27, 2008 3:49 AM by Misenko

    How to determine DataGrid Item Renderer column number

    Misenko
      Hi, Can anybody help me with this problem? I have datagrid with custom item renderers. Now, if I click on one of them, I need to know, which column is this item renderer located in...

      For exaple:

      Table:
      ___________________________
      | Column0 | Column1 | Column2 |
      ___________________________|
      | IR1 | IR2 | IR3 |
      |__________________________|
      .
      .
      .

      Now if I click on IR2, retrun value should be "Column1 was clicked", or just a column number. I have event listener (MouseEvent.Click) on each renderer, but I simly don't know to determine Column number....

      Thanks for help...