We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Exception when calling GGC.Refresh

ES I have a GGC whose data I am changing underneath it. I do the following: set GGC.DataSource = null clear the datatable fill datatable set GGC.DataSource = dt.DefaultView call GGC.Refresh* experience many of these exceptions: A first chance exception of type ''System.Data.RowNotInTableException'' occurred in system.data.dll Additional information: This row has been removed from a table and does not have any data. BeginEdit() will allow creation of new data in this row. * The reason for calling refresh is that in some situations I was having trouble syncing the grid to the datasource, but I don''t have the particulars on this. So, I''ve taken the call out, but I''m wondering why I am getting this exception. Sean

2 Replies

AD Administrator Syncfusion Team August 2, 2004 06:30 AM UTC

I tried to reproduce this problem in the attached sample. There, when you click teh button, the a timer will fire in 3 seconds to reset the data. The the three seconds can be used to start editing a row or something in case the problem is related to the current state of the grid (like a row is being edited when you zap the data). But I could not come up with any set of actions that cause this exception. So, what is different in the sample from what you are doing? The sample uses a nested datasource? is yours flat? Do you have columns grouped or sorted or have summaries or ??? Do you always see the exception? Is it reproduceable through a set of fixed steps? Are there multiple threads involved? GGCNewDataSource_6118.zip

SG Sean Greer August 2, 2004 03:12 PM UTC

Thanks Clay, I''ll take a look at creating a simple repro.

Live Chat Icon For mobile
Up arrow icon