InitExpressions "Cannot find the parent relation ..."

Beta2

In a dataset, I have a Parent table and a Child table , in Child table, I have a readonly column with an expression of Parent(FK_Child_Parent).ColumnName

When save changes to database, exception happens in the dataset designer.vb code, at the child table InitExpressions procedure at the line of

Me
.PartyNameColumn.Expression = "Parent(FK_tblCMAParty_tblCMParty).SearchName"

My child screen is bound to the child table, not the relation, is that the reason?

Thanks

Wei

[564 byte] By [WeiWangfatheroftwins] at [2008-2-7]
# 1
I looked it again. before the exception, my code tries to make a copy of dataset

Dim ds As New CMBE.dsCriminal

ds = CType(ds0.Copy, CMBE.dsCriminal)


what's wrong with the copy statement.

There is a post, here, I think it is the exact my problem.

http://groups-beta.google.com/group/microsoft.public.dotnet.framework.adonet/browse_thread/thread/2ea957f24cb387a2/82bb8f3e5cd3b0c8?q=clone+datarelation&rnum=2&hl=en#82bb8f3e5cd3b0c8

Seems it is a pending issue.

Thanks

WeiWangfatheroftwins at 2007-9-8 > top of Msdn Tech,.NET Development,.NET Framework Data Access and Storage...

.NET Development

Site Classified