Object List view not setting data even though data in list.
ObjectListView - ListView on caffeine, guarana and steroids
Brought to you by:
grammarian
I do not understand what is going on here i am using a list as said to and set object but the grid is not showing the results.
var results = from line in kitItemsToGroup group line by line.BoxName into g select new BoxReportView { ProductionPlanWeekStarting=_weekStartDate, BatchNumber =_batchNumber, ProductionPlanWeekEnding =_weekEndDate, BoxRef = g.First().BoxRef, BoxName = g.First().BoxName, Qty = g.Sum(s=>s.Qty) }; kitItemsToGroup = results.ToList();
public class BoxReportView { public DateTime ProductionPlanWeekStarting { get; set; } public DateTime ProductionPlanWeekEnding { get; set; } public string BatchNumber { get; set; } public string BoxRef { get; set; } public string BoxName { get; set; } public decimal Qty { get; set; } public FUEL_KitItem KitItem { get; set; } public decimal Multiplier { get; set; } }
Sorry this is the correct class here audit list.
You might have to post more of your code, but my guess is that you didn't tell the list what your columns are - try calling
BrightIdeasSoftware.Generator(myList, typeof(AuditList))
, or callingRebuildColumns
after callingSetObjects
.Last edit: Thracx 2019-05-24