Click here to Skip to main content
15,900,511 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have created grid view inside link button , values bind from database.
how to add link button for databound field.
can anyone guide me.
Advance thanks,
Posted

1 solution

<gridview   runat="server" id="GridView1">
<columns>
<asp:TemplateField >
<ItemTemplate>
<asp:linkbutton runat="server" id="Link_Button" autogeneratedcolumns="true" >
 </ItemTemplate>
</TemplateField>
</columns>

AutoGeneratedColumns="true";becouse you Bind Grid From Database
 
Share this answer
 
v4

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