The table rows rendered by the datagrid do not have ID values. If you have to
assign ids to the rows you may use javascript
:
var tbl = document.getElementById("datagrid1");
//this loop would assign ids to the rows (including the header row)
for (var i=0;i<tbl.rows.length;i++)
{
tbl.rows[i].id="row" + i;
}
//the following line is a test to refer to a row by its id
alert(document.getElementById("row1").outerHTML);
--
HTH,
Phillip Williams
http://www.societopia.net http://www.webswapp.com
"Jon" wrote:
Hello,
I need to give each row an ID in a DataGrid as I need to retrive it through
JavaScript using the row ID rather than the index.
Is this possible at all?
Thanks all,
Jon