In Row Command event use the code as below :
protected void grdDocs_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "Download")
{
GridViewRow row = (GridViewRow)(((LinkButton)e.CommandSource).NamingContainer);
}
}
Cast your command source as a type of the control you have.