I am taking template fielt as follows
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="LinkAssignButton" runat="server"
CommandName="Assign"
Text="Take" Visible="true">
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
and on row command event how to get gridview whole row value of all cells in it in different variable
//in code behind rowcommand event
Dim _NameOfCommand As String = e.CommandName
If _NameOfCommand = "Assign" Then
Response.Write("done")
End If