[Solved] Row count start with 0 or 1?
[Solved] Row count start with 0 or 1?
Just want to make sure since I am not finding this information easily.
When I am accessing first row with following code
[code]
var aPos = oTable.fnGetPosition(this);
alert("aPos: " + aPos);
alert("[Row, Col]: [" + aPos[0] + "," + aPos[1] + "]");
[/code]
I am getting
[code]
aPos: 2, 0, 0
[Row, Col]: [2,0]
[/code]
By first row I mean row after table heading. My table first row is heading.
When I am accessing first row with following code
[code]
var aPos = oTable.fnGetPosition(this);
alert("aPos: " + aPos);
alert("[Row, Col]: [" + aPos[0] + "," + aPos[1] + "]");
[/code]
I am getting
[code]
aPos: 2, 0, 0
[Row, Col]: [2,0]
[/code]
By first row I mean row after table heading. My table first row is heading.
This discussion has been closed.
Replies