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

Need to display "LinkButton" in GridView control of Last column.

i am using DataTable to add,data. i am able to add.
when i using <itemtemplate> Field in that i kept LinkButton control.

when run the code,it displaying First place LinkButton and Data, I need to display last.

Example:

1)Now showing
Linkbutton column1 column2
2)Need to show
column1 column1 LinkButton

Thanks in Advance...
Posted

1 solution

I assume that you are doing this in Web Application.

You can simply add Template Column in GridView and Use any control.

For Example :

<asp:templatefield headertext="Order Number" sortexpression="OrderID" xmlns:asp="#unknown">
<itemtemplate>
<asp:linkbutton id="LinkButton" runat="server" text="<%# Eval("OrderID") %>" tooltip="Click to preview Order Details">
</asp:linkbutton>
</itemtemplate>
</asp:templatefield>
 
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