Hi Yedhuvamshi,
As much I understand your problem, you have to write the following lines of code in RowCreated event of your Gridview:-
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onclick", String.Format("EnableCheckBox({0});",e.Row.RowIndex));
}
And then in your Javascript code:-
function
EnableCheckBox(vRowIndex)
{
}