Please write this code in the RowDataBound event of gridview. This will enable a popup to come up when you double click on a gridview row.
e.Row.Attributes.Add("ondblclick", "javascript:return GetJobID('" + e.Row.Cells[0].Text.Replace("'", "''") + "');this.style.font='Italic 12pt helvetica';this.style.color = 'Gray';");
The javascript function will look like this
function ShowAuditLog(JobId)
{
var sURL = 'DisplayAudit.aspx?JobID=' + JobId;
myWindow = window.open(sURL,
'Current_Audit_Log','toolbar=no,menubar=no,resizable=no,scrollbars=yes,status=no,location=no,width=800,height=600');
myWindow.moveTo(75,50);
return false;
}
function GetJobID(RowIndex)
{
ShowAuditLog(RowIndex);
}
I hope this will resolve your query.