文件名称:DataTable 数据源加载之后列表加载之前重新处理数据.pdf
文件大小:62KB
文件格式:PDF
更新时间:2022-09-10 10:22:25
处理数据
private DataTable Optimization_DataTable(DataView dv) { DataTable dt = dv.Table.Clone(); if (dv.Table.Rows.Count >= 1) { for (int i = 0; i < dv.Table.Rows.Count; i++) { DataRow dr_1 = dt.NewRow(); string[] str_To_end_customer = dv.Table.Rows[i]["To_end_customer"].ToString().Split(','); string[] str_HK10_FR10 = dv.Table.Rows[i]["hk_invoice"].ToString().Split(','); dr_1["status"] = dv.Table.Rows[i]["status"]; dr_1["country"] = dv.Table.Rows[i]["country"]; //dr_1["qty"] = dv.Table.Rows[i]["qty"];