日期:2014-05-17 浏览次数:21096 次
foreach (EN_ec_city en in enlist)
{
// DataRow[] df = dtlogistice.Select(String.Format("startaddr='{0}' and endaddr='{1}'", en.city_name, en.city_name));
DataRow[] df = dtlogistice.Select(String.Format("startaddr='{0}'", en.city_name));
// DataRow[] dd = dtlogistice.Select(String.Format("endaddr='{0}'", en.city_name));
foreach (DataRow row in df)
{
DataRow ro = newgvprice.NewRow();
foreach (DataColumn co in cols)
{
ro[co.ColumnName] = row[co.ColumnName];
}
newgvprice.Rows.Add(ro);
}
}