As the question says, how can I add multiple rows to a datatable in vb.net? I mean, without looping. F. e. I have an array of datarows and I can then write: dt.Rows.Add(rowarray).
Is this possible? I have searched the net, but found everywhere just looping (or I used the wrong search words).
I don't think it's possible -
DataRowCollection
doesn't seem to have anything likeAddRange
to hide the looping, although I suppose you could write your own extension method:And use that in your code: