如何将下面的结果传递给数据表,以便在datagridview中显示?
var query = from r in DtSet.Tables["tblCharge"].AsEnumerable()
select new
{invoice = r.Field<string>("InvNo"),
type = r.Field<string>("EorD")};
Thanks in advance
可以通过
dataGridView.DataSource = query.ToList();