需要显示"LinkBut​​ton"在最后一列的GridView控件中. [英] Need to display "LinkButton" in GridView control of Last column.

查看:58
本文介绍了需要显示"LinkBut​​ton"在最后一列的GridView控件中.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

需要在最后一列的GridView控件中显示"LinkBut​​ton".

我正在使用DataTable添加数据.我能够添加.
当我使用< itemtemplate>我保留了LinkBut​​ton控件的字段.

运行代码时,它显示首位" LinkBut​​ton和数据",我需要显示最后".

示例:

1)现在显示
链接按钮column1 column2
2)需要展示
column1 column1 LinkBut​​ton

在此先感谢...

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...

推荐答案

我假设您正在Web应用程序中进行此操作.

您只需在GridView中添加模板列,然后使用任何控件即可.

例如:

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>


这篇关于需要显示"LinkBut​​ton"在最后一列的GridView控件中.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆