如何在Gridview中的RowUpdating事件中获取旧值 [英] How to fetch the old values in RowUpdating Event in Gridview

查看:130
本文介绍了如何在Gridview中的RowUpdating事件中获取旧值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求是捕获DB中的旧值,加上新更新的值,可以在Gridview中

My requirement is to capture the old values in DB, plus the newly updated values, is that possible in Gridview

推荐答案

这是可能的,你可以做这个任何类型变量的帮助。之前当您的更新事件发生时,保留旧值任何类型的变量,例如

is that is possible, you can do this help of any type variable. Before When your update event is occur,hold the old value any type of variable, like that
var ii=GridView1.Select["row"].column[""].tostring();





我知道不清楚,分享你的代码以便更好地理解。



I know is that not clear , share you code for better understand.


这篇关于如何在Gridview中的RowUpdating事件中获取旧值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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