我用的是List<>泛型来绑定数据的,this.dgViewXClientInfo.DataSource = list;无法实现自动排序
http://blog.sina.com.cn/s/blog_538311d30100p3ve.html
这个还不简单,list<> 在后台绑定前转换DataTable dt=ConvertToDt(list); 转换后在从新绑定 既可以了 或者是在不行 重写下排序的方法也行!