0
Answer

The Only Child tables cause the object disposed problem when using datagridview in winform?

Ask a question
Huy

Huy

15y
2.3k
1

I'm building a winform application,based on .net 3.5

I've used Linq to SQL to build data access layer, dbml file placed in the same project with the forms in interface layer. Every query work very well but when I showed a child table (in an associate) by a datagridview, the problem took place:

At first, everything seems to be aright, but after data were loaded and showed on datagridview,a  series of error messageboxed appeared. They told that the object was disposed.

But if I try a table that only a parent in all its associates, everything OK.

So, I think the problem here is the child table. I try again with others table,database but the result is the same and this problem only take place in winform app but free error to webform.

Anybody met the problem like me? Please help!