Ajax,JavaScript,GridView ASPX VB [英] Ajax, javascript, gridview aspx vb

查看:68
本文介绍了Ajax,JavaScript,GridView ASPX VB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在javascript中获取gridview的已编辑行的索引

How to get the index of the edited row in javascript for a gridview

推荐答案

我假设您是指对单元格进行就地编辑.

您可以处理事件System.Web.UI.WebControls.GridView.RowEditing.您的处理程序会收到类型为System.Web.UI.WebControls.GridViewEditEventArgs的事件参数,它具有属性NewEditIndex,该属性用于获取或设置要编辑的行的索引.

参见:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowediting.aspx [ http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridviewediteventargs.aspx [ ^ ].

—SA
I assume you mean in-place editing of a cell.

You can handle the event System.Web.UI.WebControls.GridView.RowEditing. You handler receives event arguments of the type System.Web.UI.WebControls.GridViewEditEventArgs, it has the property NewEditIndex used to get or set the index of the row being edited.

See:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.aspx[^],
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowediting.aspx[^],
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridviewediteventargs.aspx[^].

—SA


这篇关于Ajax,JavaScript,GridView ASPX VB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆