在gridview中插入超链接按钮时需要帮助 [英] Need help in inserting a hyperlink button in gridview

查看:98
本文介绍了在gridview中插入超链接按钮时需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我在gridview中插入超链接按钮时遇到问题

1)从添加新列"中我添加了一个超链接字段,但是当我运行应用程序时,它没有显示该列

和第二个
2)我希望该列位于gridview的右侧,但默认情况下它位于左侧..

请告诉问题...

谢谢

以下是我的gridview HTML代码:

Hi all

I facing problem in inserting a hyperlink button in gridview

1)from Add New Column i added one hyperlink field but when i m running the application it''s not showing that column

and 2nd one
2)I want that column on right side of the gridview but by default it''s coming left side..

Please tell the the problem...

Thank you

Below is my gridview HTML code:

<pre lang="xml"><asp:GridView ID="GridView1" runat="server" BorderStyle="Solid"

                        ForeColor="Black" style="text-align: center" CellPadding="4"

                        CssClass="Gridview" onrowdatabound="GridView1_RowDataBound" Width="837px"

                        Height="199px" AllowPaging="True"

                        onpageindexchanging="GridView1_PageIndexChanging" BackColor="#CCCCCC"

                        BorderColor="#999999" BorderWidth="3px" CellSpacing="2">
                        <RowStyle BackColor="White" />
                        <FooterStyle BackColor="#CCCCCC" />
                        <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
                        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    </asp:GridView>

推荐答案

您好,请参考以下链接,这可能会对您有所帮助.

http://webdesign.ittoolbox.com/groups/technical- Functional/asp-dotnet-l/linkbutton-in-gridview-2045194 [
Hi refer the below link this will may help you.

http://webdesign.ittoolbox.com/groups/technical-functional/asp-dotnet-l/linkbutton-in-gridview-2045194[^]

If you still not able to resolve the issue. Better you should copy your code here.


使用gridview的模板将超链接放入网格中,到新页面. 请参阅一些线程:
将超链接字段添加到gridview [使用HyperLink控件在GridView中 [ CP搜索 [此处 [
Use the template of the gridview to put a hyperlink in your grid, to the new page.
Refer some threads:
Adding hyperlinkfields to gridview [^]
Use a HyperLink control inside a GridView[^]

Refer: CP Search[^]
..and more threads here[^]


CodeProject Frequently Asked Questions Series 1: The ASP.NET GridView[^] might give you some additional information.


这篇关于在gridview中插入超链接按钮时需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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