开发者

asp.net find control in gridview

开发者 https://www.devze.com 2023-01-28 17:48 出处:网络
How do I use find control to access Label4? Thanks for any help you can provide :) 开发者_如何学JAVA<asp:GridView ID=\"grdView\" runat=\"server\"OnSelectedIndexChanged=\"viewBLOG\" GridLines=\"No

How do I use find control to access Label4?

Thanks for any help you can provide :)

开发者_如何学JAVA
<asp:GridView ID="grdView" runat="server"  OnSelectedIndexChanged="viewBLOG" GridLines="None"  AllowPaging="true"  CssClass="mGrid"  PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt">
    <Columns>
        <asp:ButtonField ButtonType="Button" CommandName="Select" HeaderText="View Sprint Backlog" ShowHeader="True" Text="View" />
        <asp:TemplateField HeaderText="Status">
            <ItemTemplate>
                <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>


This post on the ASP.NET forum answer exactly your question with a sample very similar to yours :)

0

精彩评论

暂无评论...
验证码 换一张
取 消