I want to get gridview datakeys value in JavaScript.
I know that we can get gridview cell value using
col1 = grid.rows[i].cells[5];
But I use Autogeneratedcolumn = "true"
so it bind with different number of column each time and there is no specific place where my datakey bind for ex-
for 1 scenario gridview can bind like
Code A1 A2 A3 Tot
as1 1 2 3 6
as2 2 3 4 9
for 2nd scenario gridview can bind like
Code A1 A2 Tot
as1 1 2 3
as2 2 3 5
Tot is my datakey I want to get this value in JavaScript function