hi I have a radgrid with 1 detailtable. The master table is Members, the datakey is MemberId, the detailtable is Students, the datakey is StudentID. At runtime i can expand any mastertableview record to view the detailtable records. However once I click on export button i get this error: StudentID is neither a DataColumn nor a DataRelation for table Members. StudentID only exist in the StudentTable, not the Member table.... I could not understand why the Grid Exporting tries to find the StudentID in Members Table?
my export code is:
| RadGrid1.MasterTableView.HierarchyDefaultExpanded = true; |
| RadGrid1.MasterTableView.DetailTables[0].HierarchyDefaultExpanded = true; |
| RadGrid1.AllowPaging = false; |
| RadGrid1.MasterTableView.Rebind(); |
| RadGrid1.ExportSettings.OpenInNewWindow = true; |
| RadGrid1.MasterTableView.ExportToCSV(); |
please help