[英]Gridview rowcommand after refreshing
I have a gridview inside an updatepanel. 我在updatepanel中有一个gridview。 After updating the gridview, accessing the individual rows does not seem to give the right row.
更新gridview后,访问各个行似乎没有给出正确的行。 For example:
例如:
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
GridViewRow row = ((e.CommandSource as Control).NamingContainer as GridViewRow);
Row from the above code gives the values from the gridview before the gridview is refreshed/updated. 上面的代码中的行给出了刷新/更新gridview之前来自gridview的值。 Anyone knows how to get the updated values?
有人知道如何获取更新的值吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.