Click here to Skip to main content
15,921,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
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
Posted

try this link

Gridview Row Index [^]
 
Share this answer
 
Other way is you can put the what ever row data you needed in the command Argument of the link button and get it in the row command event.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900