Yes ofcourse. Try like below. Use
RowDataBound
Event.
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes["onclick"] =
"javascript:gridRowOnclick(this);";
}
}
Then write
JavaScript
function
gridRowOnclick
.
function gridRowOnclick(element)
{
alert("GridView clicked");
}