You don't normally do it that way. You don't put the index into the link
when it is created. You find out the row of the link when it is clicked.
It is easier that way and more predictable. Some operations you do on the
DataTable might alter the indexes if you put them statically. Actually, you
don't even need to put a link, anything you put in the cell will do, most
often an image and when the cell where that element is located is clicked,
you find out which row was it. See "Deleting Records" at
http://yuiblog.com/blog/2007/09/26/satyam-datatable-2
Satyam
----- Original Message -----
From: "riku.tuominen" <riku.tuominen@...>
To: <ydn-javascript@yahoogroups.com>
Sent: Tuesday, May 13, 2008 9:10 PM
Subject: [ydn-javascript] How to get row index when creating a link to
column
>I have a delete link on each row.
> How do I get the row index of particular row when the links are created.
>
> I need that when deleting that specific row when clicking on the link.
>
> I have all code ready, only question is how to retrieve the row index.
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
--------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG.
Version: 8.0.100 / Virus Database: 269.23.16/1430 - Release Date: 13/05/2008
7:31