代码中启用了过滤功能, 但当点击过滤的列时发生错误:
error: spgridview_filtercallbackerrorhandler() was called - result =回调时发生错误...
详细见:
HTML代码:
AllowFiltering="True"
FilterDataFields=",Name,,,,," FilteredDataSourcePropertyFormat = "{1} = '{0}'"
FilteredDataSourcePropertyName = "FilterExpression"
解决方案:
把创建数据源和生产SPGridview的事件放在 if (!Page.IsPostBack)外;