Home All Groups Group Topic Archive Search About

Program stuck when removing row from DataTable

Author
8 Jun 2006 1:46 PM
Dagan
Hello

I have built a DataGridView that its data source is binded to a DataTable
after adding it 200 rows I try to remove the first row and the program
stuck, What could it be????


Thanks.

Author
9 Jun 2006 8:35 AM
Frans Bouma [C# MVP]
Dagan wrote:

> Hello
>
> I have built a DataGridView that its data source is binded to a
> DataTable after adding it 200 rows I try to remove the first row and
> the program stuck, What could it be????

    Try to run the program in the debugger, then delete the row, then go
to vs.net and press the || (pause) button to break the code where it is
at that point. 10 to 1 you end up in the infinite looping code which
causes the hang.

        FB

--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------

AddThis Social Bookmark Button