我想在asp.net中突出显示gridview行 [英] i want highlight gridview row in asp.net

查看:79
本文介绍了我想在asp.net中突出显示gridview行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我想突出显示gridview中的行,当用户选择gridview上的任何行时,我需要2个hightlight那行。请任何人告诉我

hi i want to highlight the row in gridview,when user select any row on gridview i need 2 hightlight that row.please any one tell me

推荐答案

你好,



看看这里:

http://stackoverflow.com/questions/4812203/highlighting-the-selected-row-gridview [ ^ ]

http://forums.asp.net/t/1398587.aspx/1 [ ^ ]
Hi,

Have a look here:
http://stackoverflow.com/questions/4812203/highlighting-the-selected-row-gridview[^]
http://forums.asp.net/t/1398587.aspx/1[^]


<asp:GridView ID="GridView1" runat="server" Width="315px"

            onrowcancelingedit="GridView1_RowCancelingEdit"

            onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing"

            onrowupdating="GridView1_RowUpdating">
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True"

                    ShowSelectButton="True" />
                <asp:ButtonField ButtonType="Button" HeaderText="aa" Text="Button" />
            </Columns>

            <SelectedRowStyle BackColor="LightBlue" /> 

        </asp:GridView>


这篇关于我想在asp.net中突出显示gridview行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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