Add DataRow into LookupTable
How can I add a new DataRow into a LookupTable or a DataTable?
You'd be performing these operations on the DataTable, so C# code would be best. A DataTable has both a Merge and an ImportRow method. The merge is faster and takes the two tables and essentially glues them together. If you want to import only specific rows, you can use the ImportRow method.
Here's a sample solution where I use both. Button 1 will use Merge and button 2 will use the ImportRow.
Keep up to date on this post and subscribe to comments