all groups > dotnet windows forms databinding > july 2004 >
You're in the

dotnet windows forms databinding

group:

databinding issue in 1.1 fwk


databinding issue in 1.1 fwk Dotnet Newbie
7/28/2004 5:26:00 PM
dotnet windows forms databinding:
Hi all,
I am working on .NET framework 1.1

While binding data to our master table in the database, we are using this
System.Data.Relatedview class. But the issue is, it does not appropriately
update data. The databinding is failing too.

I traced down the issue to this particular class by manual debugging. I
could also see a similar unanswered post in the same newsgroup :

http://groups.google.co.in/groups?hl=en&lr=&ie=UTF-8&threadm=eoJmKp2kDHA.1708%40TK2MSFTNGP12.phx.gbl&rnum=1&prev=/groups%3Fq%3DRelatedView%2Bhas%2Ba%2Bcollection%2Bof%2BColumns%2B%252F%2BValues%2Bthat%2Brepresent%2Bthe%2B%26ie%3DUTF-8%26hl%3Den%26btnG%3DGoogle%2BSearch

Does anyone know if this is a known issue, or ir there is a fix available by
MS for the same ?
Any pointers are welcome.
Regards.

RE: databinding issue in 1.1 fwk Satish H.S
8/2/2004 5:33:01 AM
Hi,
The reason for this is that whenever we are inserting a row into the parent table, it causes the table to be in edit mode. When editing the child table, the parent table should not be in editmode. Hence you really need to use CurrencyManager.EndCurrentEdit() before adding any rows to the child table.
The solution is documented in the KB article at
http://support.microsoft.com/?id=816227

[quoted text, click to view]
AddThis Social Bookmark Button