Hi
christokavi,
For example you have grid view containing no of records(ex. Employee details), then you have a button VIEW for displaying selected employee details on another panel controls. Now i need a feature that when you double click the row then display the details same as the VIEW button.
Please refer,
Grid View Row Navigation done by
Mr.Samir NIGAM Thank you Samir:thumbsup::thumbsup:
I have taken the above article for my example and then i added the feature for double click which your requirement.
Controls
Gridview - gvData
VIEW button - btnView
public void gvData_RowDataBound(object sender, GridViewRowEventArgs e)
{
e.Row.Attributes.Add("ondblclick", "javascript: document.getElementById('ctl00_ContentPlaceHolder1_btnView').click(); return false;");
}
According to the code i just called the server side method btnView event by javascript in gvData event.
If you have any doubt then let me know.
Regards,
thatraja