>$('#flexClients').dblclick(function (e) { > var id = $(e.target).attr('id')'; > // id should contain the row id >}); >I got it to work with this code
$('#flexClients').dblclick(function (e) { var $row = $(e.target).closest('tr'); var id = $row.attr('id'); var ClientName; ClientName = $('td:eq(2)', $row).text(); editRow(id, ClientName); }); function editRow(id, ClientName) { id = id.substring(id.lastIndexOf('row') + 3); currentId = id; $('#fntype').val('Edit'); var url = '/Client/Edit/' + id; $.get(url, function (html) { $($dlg).html(html); }); RunModalDialog("Edit Client: " + ClientName); }Thanks again, the double click now fires without extra click.