JqGrid DataBinding exception while exporting to excel file
问题 I am trying to export JqGrid to excel so i follow this instruction and i use it like at below. var grid = new JqGridModelParticipiant().JqGridParticipiant; var query = db.ReservationSet.Select(r => new { r.Id, Name = r.Doctor.Name, Identity = r.Doctor.Identity, Title = r.Doctor.Title.Name, Total = r.TotalTL, Organization = r.Organization.Name }); grid.ExportToExcel(query,"file.xls"); And i get below exception on the line of " grid.ExportToExcel(query,"file.xls");" Data binding directly to a