This is a migrated thread and some comments may be shown as answers.

This row has been removed from a table and does not have any data.

9 Answers 685 Views
GridView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 28 May 2008, 12:34 PM
I am just getting started with using the win forms controls rad grid view. I am using linq DataContext class as the basis of my binding source. This loads the rad grid fine but when i select a row i come up with this error. "This row has been removed from a table and does not have any data.  BeginEdit() will allow creation of new data in this row." This shows up in the Applicationrun in my Program.cs file. I was using the standard win forms controls and have no problem with selecting rows. I have looked at the online help but have only seen a couple of instances that i thought would work but nothing yet has proven true. Any ideas as to what properties or actions i need to take.

Thanks john.

9 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 29 May 2008, 08:08 AM
Hello John,

Thank you for contacting us.

We didn't manage to reproduce this issue locally. Maybe it is related to your application and appears in a specific situation. We are interested in addressing this issue. Please, open a support ticket and send us a sample project that reproduces it. This will help us investigate any potential issue faster.

I'm looking forward to your response.

Greetings,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
John
Top achievements
Rank 1
answered on 29 May 2008, 01:10 PM
Thanks for your reply to my question. My problem is solved with just adding a simple line of code. I needed to assign my variable used in my linq query for my binding source to the actual grid instead of just to my binding source. Thanks again for your reply.

John
0
Kiril
Telerik team
answered on 29 May 2008, 01:19 PM
Hello John,

I'm glad to hear the issue has now been resolved. If you have any more questions, please let us know.

We are committed to helping you use our product to your maximum benefit. Please share any feedback you have on our product or service. It will allow us to develop it in the direction most useful to you.

Kind regards,
Kiril
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Swarup
Top achievements
Rank 1
answered on 07 Oct 2008, 12:42 PM
Hello Jack,

I am facing the same problems as John. I did not really understand the solution mentioned in this thread.

Problem: Everytime I click on the Telerik Grid I see this exception (This row has been removed from a table and does not have any data.  BeginEdit() will allow creation of new data in this row.)

My Code: I have a binding source attached to the data source property of Telerik grid. And in the code I initialize the binding source datasource property to a list of objects. Due to this when the grid pulls up I see the records on the grid. However, when I click on the grid, it does not even go to its event handler but throws this exception.

Kindly let me know what could be done to resolve this issue.

Looking forward to your reply.

Regards,
Swarup
0
Nick
Telerik team
answered on 08 Oct 2008, 12:14 PM
Hello Swarup,

Please send us a sample application demonstrating the issue, because I wasn't able to reproduce it. I have attached a project showing the things I tried.

 
Regards,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Nicolaï
Top achievements
Rank 2
answered on 29 Sep 2009, 07:51 AM
Hi,

had a similar issue in a .net ajax app.
Google pointed me here, but in my case, I was reusing a custom database class inside a select/delete loop.
Creating new instances of it solved it for me.
(Just adding my view since some people didn't manage to fix it..)

Best regards,
Nicolai
0
Nick
Telerik team
answered on 29 Sep 2009, 01:02 PM
Hello Nicolai,

Thank you for your comment. Please write in ASP.NET forums, should you have questions about ASP.NET.

Greetings,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Nicolaï
Top achievements
Rank 2
answered on 29 Sep 2009, 01:35 PM
Hi,

I realize this is the winforms section (for which I also have a license).
But the result, the cause, and the code could be 100% applicable to the scenario of this thread.
A reminder to create new instances of a class instead of reusing the same one, inside loops...

Best regards,
Nicolai
0
Nick
Telerik team
answered on 30 Sep 2009, 06:27 AM
Hello Nicolai,

I see, thank you for writing.

Kind regards,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
John
Top achievements
Rank 1
Answers by
Jack
Telerik team
John
Top achievements
Rank 1
Kiril
Telerik team
Swarup
Top achievements
Rank 1
Nick
Telerik team
Nicolaï
Top achievements
Rank 2
Share this question
or