-3
我有一個DataGridView中顯示此LINQ查詢的麻煩:顯示LINQ查詢在一個DataGridView
var result = from myrow in MydataTable.AsEnumerable()
where liste.Any(x => myrow.Field<string>("ID").ToUpper().Contains(x.ToUpper()))
select myrow;
MyGrigdView.DataSource = result.Tolist();
輸出:
感謝您的解釋@Servyy! – Zack09