I know that the Getcustomers function is getting called because it stops on a breakpoint. I can see the data that should be returned. However, the grid displays “No records to display”
I think that I must be missing something but am not sure what.
I have included code below for reference. Any help on this is greatly appreciated.
public static IList<EditableOrder> GetAllRecords()
List<EditableOrder> orders = new List<EditableOrder>();
if (orders.Count() == 0)
orders = (from ord in new NORTHWNDEntities().Orders.Take(200)
select new EditableOrder
OrderID = ord.OrderID,
OrderDate = ord.OrderDate,
CustomerID = ord.CustomerID,
EmployeeID = ord.EmployeeID,
Freight = ord.Freight,
ShipAddress = ord.ShipAddress,
ShipCity = ord.ShipCity,
ShipName = ord.ShipName,
ShipPostalCode = ord.ShipPostalCode,
ShipRegion = ord.ShipRegion,
ShipCountry = ord.ShipCountry
foreach (var order in orders)
if (order.Freight > 30)
order.Verified = true;
order.Verified = false;
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.