如何在gridview中识别正在更新哪条记录 [英] How to identify in gridview which record is being updated
本文介绍了如何在gridview中识别正在更新哪条记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个带有100个记录的文本框的gridview ..
现在如果我更新文本框记录的价值没有70,80,90
如何识别用户在网格视图中只更新这三行。
请帮忙。
Thnx
Hi All,
I have a gridview with textboxes in it with 100 records..
now if i am updating the textbox value of record no 70, 80, 90
How can i identify that only these three rows are updated by user in grid view.
Please help.
Thnx
推荐答案
你可以用< a href =http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowupdated(v=vs.110).aspx> RowUpdated事件 [< a href =http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowupdated(v=vs.110).aspx\"target =_ blanktitle =New窗口> ^ ]
EditIndex [ ^ ]属性应该告诉你w行已更新
You could use the RowUpdated event[^]
EditIndex[^] property should tell you which row was updated
这篇关于如何在gridview中识别正在更新哪条记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文