开发者

c# doing rowimport only on specific columns

开发者 https://www.devze.com 2023-02-05 05:35 出处:网络
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
        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

精彩评论

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

关注公众号