I can add a new row to the end of a datatable in one line:
But if I want to just create a new row, all the examples I've seen add each field one at a time:
Is there a one-line way to make a new row?
Code:
MyTable.Rows.Add(FirstValue, SecondValue, etc)
Code:
Dim newrow As DataRow = MyTable.NewRow
newrow.Item("First Column") = FirstValue
newrow.Item("Second Column") = SecondValue