Dhtmlx Grid

After we sort the rows and then we double click on a row then some other row is getting selected and not the one we selected and we are getting values of that row.

Such behavior can occurs only if you have non-unique IDs in your data XML
Please check that all items in your data XML has ID, and they are unique.