更新GridView后刷新转发器 [英] Refresh a repeater after updating a GridView

查看:66
本文介绍了更新GridView后刷新转发器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述







我有一个GridView,我可以像往常一样编辑内容,没关系。但我的问题是当更新一些值时,它需要与其他表进行一些计算,其中我有另一个SqlDatasource与Repeater连接。





如何在更新后制作我的GridView,自动刷新其他DataSource,其中计算也将使用我的GridView项目的新值进行更新。




i have a GridView in which i can edit the contents as usual and it is ok. but my problem is when updating some values it requires some calculations with other tables in which i have another SqlDatasource connected with a Repeater.


how can i make my GridView after updating, refresh the other DataSource automatically in which the calculations also will be updated with the new values of my GridView items.

推荐答案

我认为您可以使用databind()方法,例如



i think you can use databind() method like

SqlDataSource s = new SqlDataSource();
s.DataBind();





在您的情况下,我认为数据源已经可用,您只需使用



in your case i think datasource is already available which you just have to use

yourSqlDatasourceName.DataBind()


这篇关于更新GridView后刷新转发器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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