Please refer to the attached sample project.
If the main Cars list is not empty, the child templates have correct captions:
However, if initially there are no Cars and you add a new one via the new row, the captions of the child template remains with the default value ("table"):
Hi, Patric,
When the main BindingList is empty, the ObjectRelation remains with empty Name. The ListBindingHelper.GetListName(object list, PropertyDescriptor[] listAccessors) is used to determine the name of the relation.
Currently, the possible solution that I can suggest is to specify the captions programmatically once the grid bound:
Me.RadGridView1.MasterTemplate.Templates(0).Caption = "test1"
Me.RadGridView1.MasterTemplate.Templates(1).Caption = "test2"
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik