gridview
我许多页面都要用到gridview,gridview有一个Updated事件,这个事件其实每次触发后都要调用一个相同的方法,比如:
protected void ObjectDataSource1_Updated(object sender, ObjectDataSourceStatusEventArgs e)
{
Common.messageshow.datasourcemessage(UpdatePanel1, e);
}
这样在每个页面都重复指定确实很麻烦,有没有办法让gridview的Updated触发事件时就自动执行此代码,省的每个页面都再写了?是否需要重写gridview,大概是什么流程,多谢各位!
protected void ObjectDataSource1_Updated(object sender, ObjectDataSourceStatusEventArgs e)
{
Common.messageshow.datasourcemessage(UpdatePanel1, e);
}
这样在每个页面都重复指定确实很麻烦,有没有办法让gridview的Updated触发事件时就自动执行此代码,省的每个页面都再写了?是否需要重写gridview,大概是什么流程,多谢各位!
...全文
相关推荐
ListView内嵌GridView
别人写的,哈哈,还不错!ListView内嵌GridView!
可横屏滑动的GridView
android gridview 滑动
Gridview控件的使用详解
本文档详细介绍了Gridview控件的使用方法,并附有详细实例代码,可全面学习和运用Gridview控件。
漂亮的GridView样式
Here is another gridview theme I have been playing around with this weekend based on a general CNET GameSpot style. The CSS for the gridview has been put into its own file for this series of posts, so that I can change the look of a gridview quickly without changing the class names that have been assigned to it:
GridView内嵌套使用GridView
在VS2005下实现GridView内嵌套使用GridView


