1 Attachment(s)
Parent Reference in Expression Column: I can not insert then?
Hi
I have a Master Detail Table in DataSet.
And I define the expression of one columns in detail by referring parent columns.
When I insert parent table, I saw the following exception
System.Data.VersionNotFoundException
Additional information: There is no Original data to access.
A parent table may be referenced in an expression by prepending the column name with Parent
You can find the sample program in the attachmens.
I should mention that I use c# .net2003 and sqlserver 2000
Re: Parent Reference in Expression Column: I can not insert then?
How about you just post the relevant code. I for one do not generally download other people's projects and many people can't extract RAR files anyway. The easier you make it for us to help you, the more likely it is that we will.
Have you prepended the column name with "Parent" in your Expression? Is the AcceptChangesDuringFill property of the DataAdapter set to True? Have you created a DataRelation between the two DataTables?