28,409
社区成员




<ItemTemplate>
<asp:Button ID="btn1" runat="server" Text="点击" CommandName="a" CommandArgument='<%#((GridViewRow)Container).RowIndex%>' />
<asp:Label ID="l1" runat="server"></asp:Label>
</ItemTemplate>
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
GridViewRow row = this.GridView1.Rows[int.Parse(e.CommandArgument.ToString())];
Label lbl =(Label)row.FindControl("l1");
lbl.Text = "AAA";
}