How to fetch parent Row index from children records/row's

Tags: #<Tag:0x00007f8b22057af8>

Hi,
how to get parent Row index from child row.

In the above image 1.a is child record.When there is any change in 1.a i have to fetch parent row index which is 1’s row index.
i have used isParent, getRowIndexWithinParent, getRowParent but i am not able to fetch the parent row.

Hey @phanikumar.vadlamani

there is no public API for that, but you can use the array of indexes to check which rows has been created as parents and compare those indexes with getSelected() results.