开发者

c# doing rowimport only on specific columns

        foreach (DataRow row in orderedTable.Rows)
        {
            dttemp.ImportRow开发者_JAVA百科(row);
        }

i would like to import only the first and second columns. how can i do this?


Try

dttemp.Rows.Add(new object[] { row[0], row[1] });
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜