Including grid data within an event handler

My question is i am trying to include data from a selected row within an event handler function so lets say i have



mygrid.attachEvent(“onRowDblClicked”, doOnRowDblClicked);



and my function is



function doOnRowDblClicked(rowId)

{

return confirm("Row with ID " + rowId + “was double clicked. Do you want to proceed?”);

}



I know this will work but i want to change my function to include information from that row so



function doOnRowDblClicked(rowId)

{

return confirm("Row of " + {this is where the name that is indicated within that rowID would show} + “will be deleted, do you want to proceed?”);

}



would i do something like rowId.ColumnId(a) or row.Id.ColumnIndex(0) do get information from that row displayed in the event?


You can use the following method to get value of a certain cell:


var value = mygrid.cells(rowId,columnIndex).getValue(); /columnIndex is 0 for the 1st cell in a row/