我有一个发票行对象列表。
我想显示唯一发票列表,以便稍后我可以显示所选不同发票的发票行。
List<Invoice> returnInvoices = (List<Invoice>)Session["Invoices"];
var uniqueInvoices = from i in returnInvoices
select new
{
i.InvoiceNo,
i.InvoiceDate,
i.OrderNo,
i.CustomerPO,
};
GridView3.DataSource = uniqueInvoices;
GridView3.DataBind();
如何返回独特的结果InvoiceNo
?我真的很难理解这个:(