今天偶爾有個東西要用到
總結一下
定義變量的方法
private string[] ColumnsList = {
};
private string[
{
{
{
{
};
遍歷添加到Table中
DataTable dt = new DataTable();
for(int i=
{
string[] templist = ColumnsList[i]
if (templist
dt
}
dt
for (int i =
{
DataRow dr = dt
for(int j=
{
string[] templist = ColumnsList[j]
if (templist
dr[templist[
}
dt
}
dt
記一下
From:http://tw.wingwit.com/Article/program/net/201311/15317.html