When there is a single column relating two tables defining GridRelationFields is straight forward:
GridRelationFields rf = new GridRelationFields(); |
rf.MasterKeyField = "col1"; |
rf.DetailKeyField = "col1"; |
tvProtocols.ParentTableRelation.Add(rf); |
However, how do you define a GridRelationFields when the keys are compound, such as:
GridRelationFields rf = new GridRelationFields(); |
rf.MasterKeyField = "col1,col2,col3"; |
rf.DetailKeyField = "col1,col2,col3"; |
tvProtocols.ParentTableRelation.Add(rf); |
This is not uncommon.
Must I create an autoincremented column in the parent table and then rely only upon that in the child table?