J
JJ
Hello NG
I have the following code:
DataTable dt = new DataTable();
..... prepare the columns.
DataRow rowNew = dt.NewRow();
....
....
DataTable.Rows.Add(rowNew);
My question, can i be sure that datatable.rows.add() method always adds to
end of rows. So that if i need to get the row again, i can simply use the
rowNew = dt.Rows[dt.Rows.Count-1];
I know that I can drill the rows to locate the rowNew.RowState = Added but
if I have more than one added row i can't use that.
Kind regards.
Johnny E. Jensen
I have the following code:
DataTable dt = new DataTable();
..... prepare the columns.
DataRow rowNew = dt.NewRow();
....
....
DataTable.Rows.Add(rowNew);
My question, can i be sure that datatable.rows.add() method always adds to
end of rows. So that if i need to get the row again, i can simply use the
rowNew = dt.Rows[dt.Rows.Count-1];
I know that I can drill the rows to locate the rowNew.RowState = Added but
if I have more than one added row i can't use that.
Kind regards.
Johnny E. Jensen