Obtenga el índice después de empujar el valor en la matriz en JS
var testRowIndex = gridData.push(TestRow) - 1;
Gentle Gnat
var testRowIndex = gridData.push(TestRow) - 1;