Hello,
I've been using the winforms GridView within the same project fairly successfully until I have had attempted disiplaying a one to many relation programmatically.
It all seems to work except from that the tabs that appear underneath the master row are all labled "table".
My code is as follows :
But as I say the text in the tabs that appear under the master row both say "table".
How to I change this text so that it says either "Folders" or "Logs"?
Thanks
I've been using the winforms GridView within the same project fairly successfully until I have had attempted disiplaying a one to many relation programmatically.
It all seems to work except from that the tabs that appear underneath the master row are all labled "table".
My code is as follows :
| // folder details child view and relation |
| GridViewTemplate foldersTemplate = new GridViewTemplate(); |
| foldersTemplate.EnableGrouping = false; |
| foldersTemplate.AllowAddNewRow = false; |
| foldersTemplate.ShowColumnHeaders = false; |
| foldersTemplate.Columns.Add(new GridViewDataColumn(FDScheduleIdField) { IsVisible = false }); |
| foldersTemplate.Columns.Add(new GridViewDataColumn(FDFolderNameField) { Width = 400 }); |
| foldersTemplate.DataSource = _folders; |
| radGridView1.MasterGridViewTemplate.ChildGridViewTemplates.Add(foldersTemplate); |
| GridViewRelation foldersRelation = new GridViewRelation(radGridView1.MasterGridViewTemplate); |
| foldersRelation.ChildTemplate = foldersTemplate; |
| foldersRelation.RelationName = "upload_folders"; |
| foldersRelation.ParentColumnNames.Add(CUCompletedUploadIdField); |
| foldersRelation.ChildColumnNames.Add(FDScheduleIdField); |
| radGridView1.Relations.Add(foldersRelation); |
| // add logs child view and relation |
| GridViewTemplate logsTemplate = new GridViewTemplate(); |
| logsTemplate.EnableGrouping = false; |
| logsTemplate.AllowAddNewRow = false; |
| logsTemplate.ShowColumnHeaders = false; |
| logsTemplate.Columns.Add(new GridViewDataColumn(ULIdField) { IsVisible = false }); |
| logsTemplate.Columns.Add(new GridViewDataColumn(ULNameField) { Width = 400 }); |
| logsTemplate.DataSource = _logs; |
| radGridView1.MasterGridViewTemplate.ChildGridViewTemplates.Add(logsTemplate); |
| GridViewRelation logsRelation = new GridViewRelation(radGridView1.MasterGridViewTemplate); |
| logsRelation.ChildTemplate = logsTemplate; |
| logsRelation.RelationName = "upload_logs"; |
| logsRelation.ParentColumnNames.Add(CUCompletedUploadIdField); |
| logsRelation.ChildColumnNames.Add(ULIdField); |
| radGridView1.Relations.Add(logsRelation); |
But as I say the text in the tabs that appear under the master row both say "table".
How to I change this text so that it says either "Folders" or "Logs"?
Thanks