e.Row.Attributes.Add("onclick","return fnEnableButton("+e.Row.RowIndex+")");
//In the fnEnableButton function in javascript get object of row and display it in selected mode .
function fnEnableButton(rowNum)
{
var ogv=document.getElementById("gvid");
var rowObj=ogv.rows[rowNum];
//now highlight the row and also enable the button .
}
Note: This code is not tested . Hope this will be helppful.
Rgrds
Lok
I follow
c# interview questions and answers [
^] for testing my C# technical skills .