Sort Grid after Insert/Update

After inserting or updating a grid record in place (no form) I’d like to sort the grid so the added/modified record is in the proper place and then both showRow and selectRowById the added/modified record. I could do that in onAfterUpdate or onAfterUpdateFinish but I don’t know how the user had last sorted the grid. There is a setSortImgState but no getSortImgState so I don’t know how the user has last sorted the grid.

What is the best way to sort after a record change and both show and select the modified record once it’s in the sorted location based on the current sort?

Please, try to use the getSortingState() method:
https://docs.dhtmlx.com/api__dhtmlxgrid_getsortingstate.html

Thank you, that helps. Don’t know how I missed seeing it.