铸造成组一行 [英] Casting into grouping row
本文介绍了铸造成组一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不知道为什么我得到以下异常我该怎么投进去分组行?什么组一行意味着
I dont know why i am getting the following exception how can I cast into grouping Row ? What does grouping row means
推荐答案
InvoiceHeaderCollection
是组的集合,该组是一样的东西:
InvoiceHeaderCollection
is a collection of groups, the groups is something like:
Key Value
invoice account1 datarow1 //the value is a `DataRow`
datarow2
datarow4
invoice account2 datarow3
invoice account3 datarow5
所以,我认为你需要:
So I think you need:
foreach(var g in InvoiceHeaderCollection)
{
DataRow[] rows = g.ToArray(); //to get all the DataRows in the group
//maybe another loop through the rows
}
这篇关于铸造成组一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文