使用GridView绑定数据时提示:LINQ to Entities 不识别方法“System.String ToString()”,
GridView1.DataSource = lists.ToList();
GridView1.DataKeyNames = new string[] { "setNo"};
GridView1.DataBind();
此时lists.ToList()的count=3;
怎么解决?