So, they are same rows.Only name and surname showed on different rows.I need join them in one row.Help please.
ID | NAME | SURNAME |
--------------------------------
1 | null | MIKE
-------------------------------
1 | JON | null
Thanks in advance

VulpesRank #55 · 29.2K reputationPosted Apr 11, 2013, 1:36 PM EDT
dt.Rows[0]["NAME"] = dt.Rows[1]["NAME"];
dt.Rows.RemoveAt(1);
Posted Apr 11, 2013, 1:46 PM EDT
if there are a lot of columns which need to combine in one row if it possible to make this with looping?Not one by one.
Thanks
VulpesRank #55 · 29.2K reputationPosted Apr 11, 2013, 2:22 PM EDT
for(int i = dt.Rows.Count - 1; i >= 0; i -= 2)
{
}