DevExpress中GridControl 主从表如何实现数据源为List<T>
数据源是用 List<T>,数据结构
         public class Record
         {              
             public int ID  
             { get;set; }
             public string Name
             {get;set; }
             public string Sex
             {get;set; }
             public DateTime Birth
             {get;set; }
             public float Math
             {get;set; }
             public float Chinese
             {get;set; }
             public float English
             {get;set; }
             public string Remark
             {get;set; }
             public List<ClassNo> GetClassNOs
             {get;set; }
         }
         public class ClassNo
         {
             public int ID  
             {get;set; }
             public int RecordId
             {get;set; }
             public string Remark
             {get;set; }
         }
这是以经实现的结构
如合更改下级字段名为中文,应用实例,是可以绑定的,不过他是用DataSet,而项目中都是用List<T>
应用程序实现下载地址:http://download.csdn.net/detail/z4808415/4539022
请求实现!
------解决方案--------------------你把dataSet转成list<T>不就可以了
------解决方案--------------------
楼上正解!