1.在datatable中,根据某几个字段对datatable的行去重:
DataTable dt_RunMessage = chart_data.DefaultView.ToTable("Dist", true, "TOOL_ID", "RUN_ID", "PARTITION_ID", "RECIPE_NAME", "WAFER_ID", "EQP_NAME");
2.将datatable的某列转换成一个list:
List<string> columns_list = chart_data.AsEnumerable().ToList().Select(a => a.Field<string>("INTER_LOT")).Distinct().ToList();