ultrawebgrid分页问题,急!!!
使用ultrawebgrid分页查询,无条件查询后分页显示所有信息,我选择其中某一页查看,后再输入某条件查询,ultrawebgrd.DataBind() 行就出现错误:"未将对象引用设置为对象实例"。我分页参考的是http://www.cnblogs.com/tintown/archive/2005/03/10/116079.html的例子
堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
Infragistics.WebUI.UltraWebGrid.DBBinding.RemoveRowsColumnTemplates(RowsCollection rows, Int32 start, Int32 end)
Infragistics.WebUI.UltraWebGrid.DBBinding.BindList(IEnumerable datasource)
Infragistics.WebUI.UltraWebGrid.DBBinding.DataBind(Object dataSource, String dataMember)
Infragistics.WebUI.UltraWebGrid.UltraWebGrid.DataBind()
KcManagerSystem.storageSearchorCount.BindinStorageInfoData() in e:\ERmanager\desktopmodules\storagesearchorcount.aspx.cs:165
KcManagerSystem.storageSearchorCount.SearchBtn_Click(Object sender, EventArgs e) in e:\sglf\desktopmodules\storagesearchorcount.aspx.cs:156
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
--------------------编程问答-------------------- ultrawebgrd这个没有实例化吧 --------------------编程问答-------------------- 这个问题解决了,是翻页后没有重新绑定,不过又出现另个问题:我同样是翻到一页,然后button另个查询语句,在同个WebGrid中显示,就出现DataGrid .DataBind ()错误:未将对象引用设置为对象实例"。请教!!!!!
补充:.NET技术 , ASP.NET