Hi,
I've got a problem with a project I've updated from v7.2 to v8.1.
The page consists of a paged Grid with rows each with a single checkbox for each item in the grid. The problem occurs with paging and is as follows.
Modify a few of the checkbox values by clicking on the rows.
Change the page index.
The grid crashes with the following error:
System.NullReferenceException: Object reference not set to an instance of an object. at Infragistics.WebUI.UltraWebGrid.UltraWebGrid.UpdateDBRow(UltraGridRow row, UltraGridRow oldRow) at Infragistics.WebUI.UltraWebGrid.UltraWebGrid.ProcessChanges(StateChanges stateChanges, Boolean fireEvents) at Infragistics.WebUI.UltraWebGrid.UltraWebGrid.LoadPostData(String postDataKey, NameValueCollection values) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
This is because the code in the page index changed is basically copied from the online help i.e. it does the following:
grid.RaisePostDataChanged() - Causes a call to UpdateCellBatch()
grid.PageIndex = e.NewPageIndex()
Grid.DataBind()
When calling the databind the above error is generated.
so I could take out the databind() and this fixes the above error. The question is where do I move this to. Is there any help for how to do this. I'm having a little trouble deciphering the code.
Thanks,
Andy
I am running into a similar problem with an app that was upgraded from .Net 2003 to vs 2008 clr 2. I have a simpe grid - no paging - with check boxes in one column the grid is on a warp panel and does a post back when the check is changed. It all worked fine in earlier versions but now I get a dump with the following. I have rebuilt the grid with no better results. Did you ever find a resolution to your issue?
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] Infragistics.WebUI.UltraWebGrid.UltraWebGrid.UpdateDBRow(UltraGridRow row, UltraGridRow oldRow) +115 Infragistics.WebUI.UltraWebGrid.UltraWebGrid.ProcessChanges(StateChanges stateChanges, Boolean fireEvents) +1186 Infragistics.WebUI.UltraWebGrid.UltraWebGrid.RaisePostDataChangedEvent() +147 System.Web.UI.Page.RaiseChangedEvents() +117 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1646
Hello,
This could be an issue in the new version of the grid, or something in the setup/environment. Unfortunately it is very hard to tell based on the description and I am not sure we can figure this out in peer-to-peer forums. I believe that best case to proceed in cases like that is to contact Developer Support directly, if possible, with a small subset of your project reproducing the issue and some info on environment. Developer Support can be reached at:
http://es.infragistics.com/support/
Thank you.
I'm having the same issue on a page that was previously working in 2008.2 since upgrading to 2008.3:
[NullReferenceException: Object reference not set to an instance of an object.] Infragistics.WebUI.UltraWebGrid.UltraWebGrid.UpdateDBRow(UltraGridRow row, UltraGridRow oldRow) +179 Infragistics.WebUI.UltraWebGrid.UltraWebGrid.ProcessChanges(StateChanges stateChanges, Boolean fireEvents) +1520 Infragistics.WebUI.UltraWebGrid.UltraWebGrid.RaisePostDataChangedEvent() +126 System.Web.UI.Page.RaiseChangedEvents() +165 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3518
Did you determine a solution for this?
This problem is due to the DataBind() method in Update cell event. Move this to Update Grid and it will work with out any issues. In infragistics 2008 we can perform databind() in updatecell event but infra 2009 deosnt support it!
I have an old project in VS2003, .NET FW 1.1, using Infragistics .NET Advantage 5.3 components. I also work on new projects with VS2008 using .NET Advantage 8.2. All worked well till recently. Recently an error occured inside the UpdateCell eventhandler of a UltraWebGrid in the old 5.3 project. The CellEventArgs somehow lost their content, not having references to Cell object etc. It crashed with "Object reference not set" error while updating the grid to the database. It worked well before, 100%. It may be that something with the Infragistics environment settings interfered with the 5.3. All the dll references of 5.3 vere copied locally, no change. HOWEVER, the above solution helped and I have to admit it was also my fault. In case you are updating a grid, do not call DataBind and watch out for the event calls order. Somehow DataBind was called before the UpdateCell and messed tha parameters. It occurs to me that this might actually be the cause of this problem -- Something recently did change the event handlers calls order!!!
mohayat,
I'm assuming you've followed the suggestions in previous posts in this thread. If those don't help, then we'll need more detail to determine what's happening. It might be a bug, or it might be a problem in the application.
My best advice is for you to submit a support request so that a Developer Support Engineer can look into this in more detail. Please provide a sample project that we can run and debug that demonstrates this behavior, because we'll be able to use this to investigate what's happening.
I have got the same problem with updating from 8.3 CLR2 build 2009 to 9.1 CLR3.5.
With a hierchiecal grid bound to a dataset with checkboxes at the 3 levels when i am checking a checkboxe it have to check the others hierchiecal boxes.
That's works but i received this error
La référence d'objet n'est pas définie à une instance d'un objet. à Infragistics.WebUI.UltraWebGrid.UltraWebGrid.UpdateDBRow(UltraGridRow row, UltraGridRow oldRow) à Infragistics.WebUI.UltraWebGrid.UltraWebGrid.UpdateDBRow(UltraGridRow row) à Infragistics.WebUI.UltraWebGrid.UltraWebGrid.RaiseCallbackEventHandler(String eventArgument) à Infragistics.WebUI.UltraWebGrid.UltraWebGrid.LoadPostData(String postDataKey, NameValueCollection values) à System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) à System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Best regards
Thanks a lot for sharing the solution in public forums -- much appreciated. Just in case someone else experiences the same problem in the future - here is a link to a similar problem and a solution here
http://forums.infragistics.com/forums/t/15686.aspx