I have data in excel containing nic number and gender. I want to group the data according to gender. Which I have achieved using linq query:
(
From row In dt
Group row By k=row(“Gender”).ToString.Trim
Into grp=Group
Select grp
)
But the result is saved as IEnumerable variable and I want to write result in Excel File.