
//拆分表括格 |
public DataTable DVIDatatable(int Status, DataTable dt) |
{ |
DataRow[] rows = dt.Select("StdBZfileStatus=" + Status + ""); |
DataTable newDataTable = dt.Clone(); |
int count = rows.Count(); |
if (count == 0) |
{ |
return newDataTable; |
} |
else |
{ |
rows[0]["StdBZfileStatus"].ToString(); |
object[] obj = new object[newDataTable.Columns.Count]; |
for (int i = 0; i < rows.Count(); i++) |
{ |
rows[i].ItemArray.CopyTo(obj, 0); |
newDataTable.Rows.Add(obj); |
} |
return newDataTable; |
} |
} |




by: 发表于:2018-01-03 10:44:18 顶(0) | 踩(0) 回复
??
回复评论