How to get row id from dialog table

I have a dialog popup table ,i need to fetch current row id of the dialog table

I am using this code ,give me any suggestions to achieve it
fieldname: “qty”,
fieldtype: “Int”,
label: “Qty”,
reqd: 1,
in_list_view: 1,
onchange: function(e) {
var gridRow = this.grid_row;
console.log(“Row ID:”, gridRow);
var schemeString = child.scheme;
var schemeValues = schemeString.split(‘+’).map(Number);
var qtyValue = d.get_value(‘claim_offer’)[0].qty;
var freeqty = Math.floor(qtyValue / schemeValues[0]) * schemeValues[1];