locked
How to get the position(col, row) of the user changed cell in a Table control? RRS feed

  • Question

  • I'm using tutorial_Form_Table.

    The table has dynamically assigned values, something like:

    int col;
        int row;

        for (col = 1; col <= 5; col++)
        {
            for (row = 1; row <= 5; row++)
            {
                if ((col == 2) || (col == 4))
                {
                    if (row > 1)
                        table.cell(col,row).data(row*col);
                    else
                        table.cell(col,row).data("Text "+int2str(row*col));
                }
                else
                    table.cell(col,row).data("Text "+int2str(row*col));
            }
        }

    I need to get the position of the cell when I enter new value in it, so I can update the corresponding table with the value entered.  

    Thank you.

    Friday, March 20, 2015 9:39 AM