var detailGroups = headerGroup
.GroupBy(d => d.CompanyCode)
.Select(d => new { CompanCode = d. });Thanks.
{
CompanCode = d.
});
Thanks.