Hi i have a table to be process. I need to split each vendors to process their payment with lines. So in my attachment the vendor name is repeated means it is one payment transaction. How do i achieve to process this?
vrdabberu
(Varunraj Dabberu)
June 10, 2024, 10:37am
2
Hi @mark_rajkumar1
Can you share the expected output?
Regards
@vrdabberu i need to split to individual vendor and write it to a upload file
ppr
(Peter Preuss)
June 10, 2024, 10:59am
4
looks like a groupby case
This HowTo introduces on the different options for grouping data from a datatable in order to process the grouped data.
Introduction
Grouping data and processing the grouped data is a common scenario e.g. when the grouped data is to aggregate like summing up, find maximum, get the average or concatening items.
Lets have a look on following data:
[grafik]
A possible scenario could be:
Create a report containing following information:
the region code
the sum of CaseCount per RegionCode
th…
Assign Activity
TableList | List(Of DataTable) =
(From d in dtData.AsEnumerable
Group d by k=d("Vendor Name").toString.Trim into grp=Group
Select t = grp.CopyToDataTable).toList
then loop over the TableList var and write it to excel