Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to use link button in grid view table coloumn
Posted

You can use LinkButton in GridView, By using Template Fields in the GridView.

In ItemTemplate you can use link button like below
<asp:GridView id="GridView1" runat="server" autogeneratecolumns="False">
<columns>
<asp:TemplateField>
 <itemtemplate>
    <asp:LinkButton text="Operation" id="Lb1" onclick="Click_event" runat="server" />
  </itemtemplate>

</columns>


Have a look at MSDN Article[^]

some useful links
Link 1[^]
GridView Delete, with Confirmation[^]
 
Share this answer
 
v3
Comments
RakeshMeena 20-Jun-11 1:10am    
Right answer! My 5
TweakBird 20-Jun-11 12:20pm    
Thank you.
Add TemplateField in columns, under that add itemTemplate.
now you can any controls in grid view
 
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