为了账号安全,请及时绑定邮箱和手机立即绑定

Gridview行命令单元格转换为公共字符串

Gridview行命令单元格转换为公共字符串

C#
ibeautiful 2021-04-28 21:22:22
我有一个带有rowcommand事件的gridview。我希望temp在rowcommand之外使用string的值。这可能吗?protected void gwActivity_RowCommand(object sender, GridViewCommandEventArgs e){   GridViewRow row = ((e.CommandSource as Control).NamingContainer as GridViewRow);   string temp = row.Cells[1].Text;  }
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 121 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信