0
我想将下面的查询绑定到DataGridview。 我该怎么办?如何通过查询将组绑定到linq中的DataGridview?
int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 };
var numberGroups =
from num in numbers
group num by num % 5 into numGroup
select new { Remainder = numGroup.Key, Numbers = numGroup };