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] });
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] });
精彩评论