DataTable to List
DataTable to List
DataTable dt = GetSomeDataTable ();
List<string> eqpList = dt.Select().Select(dr =>
{
return dr["equipment"].ToString().Trim();
}).ToList();
DataTable select target row
DataRow[] foundRows = null;
foundRows = dt.Select("id = '1498'");
留言
張貼留言