SMART datagrid v.1 > Classes > GridRow
If Parent Row exists, it will return index of parent row, else will return -1.
Defaults to -1.
var parent = grid.focusedRow().parent();
if (parent) {
console.log("The index of group : " + grid.focusedRow().parentIndex();
}