且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将DataRow绑定到另一个表中的另一个DataRow

更新时间:2022-02-27 22:00:53

当父行中的名称发生更改时,您不应该(根据您的要求)更新相关子行中的Name属性。您可以通过

GetParentRow
-dataview / adding-datarelations">
关系在两个表之间设置,并且来自父
GetChildRows
You should not have to (for what you are asking) update the Name property in the related child rows when the name changes in the parent row. You can get the name in the parent row from the child row via GetParentRow when a relationship is set between the two tables and from parent GetChildRows.