1、
DataRow【】rows = dt 1。select(“product Name =““+Name+“““);
foreach(行中的數據行dr)
{
字符串編號= dr【“編號“】。ToString();
}
2、
dt1。PrimaryKey =新數據列【】{ dt1。列【“product name“】};//設置主鍵
DataRow dr = dt1。rows . Find(product name);