DataRow[] dr = ds.Tables[0].Select("列名='该列你要查询的值'"); DataRow[] dr = ds.Tables[0].Select("列名='该列你要查询的值'","排序字段"); //一般情况下测试时table_name用0来代替 for (int i = 0; i < dr.Length; i++) { MessageBox.Show(dr[i]["CREATED_BY"]
本文转自:https://www.dotnetperls.com/datatable-select-vbnet VB.NET DataTable Select Function This VB.NET example program uses the DataTable type and its Select Function. Select searches for matching rows with a query. DataTable Select. A DataTable stores