datagridview绑定list出现下面的错误,除了这个还有其他的方法吗? var nodes = new List<string>(new[] { "N11", "N12", "N13", "N14" });
this.dataGridView1.DataSource = (from s in nodes select new { s }).ToList(); 错误:无法为源类型“System.Collections.Generic.List<string>”找到查询模式的实现。找不到“Select”。是否缺少对“System.Core.dll”的引用或未使用“System.Linq”的指令?
this.dataGridView1.DataSource = (from s in nodes select new { s }).ToList(); 错误:无法为源类型“System.Collections.Generic.List<string>”找到查询模式的实现。找不到“Select”。是否缺少对“System.Core.dll”的引用或未使用“System.Linq”的指令?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货