本帖最后由 fltxiaotaoer 于 2014-06-24 09:34:10 编辑

解决方案 »

  1.   

    没明白, 能给些代码么, GridView是Dev封装好的, 我没办法改啊
      

  2.   

    没明白, 能给些代码么, GridView是Dev封装好的, 我没办法改啊
     this.tl1.DataBindings.Add(new Binding("DataSource", dt, "table1"));
    http://msdn.microsoft.com/zh-cn/library/system.windows.forms.control.databindings.aspx
      

  3.   

    没明白, 能给些代码么, GridView是Dev封装好的, 我没办法改啊
     this.tl1.DataBindings.Add(new Binding("DataSource", dt, "table1"));
    http://msdn.microsoft.com/zh-cn/library/system.windows.forms.control.databindings.aspx
    这样的话, 我必须自己写解析对象的方法, 太麻烦了, 还不如使用DataSource=BindingSource, 重写GetItemProperties方便
      

  4.   

    用IEnumerable+类型转换 完美解决, 不用泛型了, 哈哈