Insert below or above a child row using python

Is there a way to add a new row below or above of a specific row like we do when using doctypes but I want to implement this through python code

Hello @Khadija have you found any solution?

Check this example:

1 Like

Yes I looped through the rows and then updated the idx values

1 Like

Thanks. @sanjay @Khadija