Skip to content

Replies

0
Vincent
Vincent answered on Feb 7, 2008 9:08 PM

Thanks Darrell,

Calling Bands(0).SortedColumns.Clear() on the grid solves the problem!  Actually, I tried to do it manually by getting an enumerator and setting them 1 by 1, that did not work either…

I arm not sure if I am running the latest hotfix though.

I can finally move on to something else. 

0
Vincent
Vincent answered on Feb 7, 2008 8:39 PM

I did try that before, same thing happened. I have verified that the new data set has the correct data in it…..

And here is the stack trace when I called DataBind

   at Infragistics.WebUI.UltraWebGrid.RowsCollection.Sort()
   at Infragistics.WebUI.UltraWebGrid.UltraWebGrid.SortGroupRows(RowsCollection rows)
   at Infragistics.WebUI.UltraWebGrid.UltraWebGrid.PerformGroupRows()
   at Infragistics.WebUI.UltraWebGrid.DBBinding.BindList(IEnumerable datasource)
   at Infragistics.WebUI.UltraWebGrid.DBBinding.DataBind(Object dataSource, String dataMember)
   at Infragistics.WebUI.UltraWebGrid.UltraWebGrid.DataBind()
   at Results_DailyResults.BindData(DataSet& myDataSet)
   at Results_DailyResults.SubmitButtonClicked
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

If I use UpdatePanel, I got the error page, but if I use AsyncRefreshPanel, the page post back due to that error as if nothing happened…