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

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;  }

添加回答

代码语言

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号