I was wondering, how can I add multiple data to a column in excel in one go, without using a loop.
Lets say, I have an excel file with 2 columns Area and Dispatcher, the Area column already has data, but I need to add the value Dispacher1 or Dispacher1 to the Dispatcher column, how can I do this at once without a loop
Normally for Update operations, we do loop through the Datatable Data and perform the necessary update.
We could also use a Linq for this but we would need to know whether the For Each is really affecting the performance.
Also, If a Same value is to be added to all the rows then we could also try adding the DataColumn with a Default Value. However, first we would need to delete the Data Column first, in your case Dispatcher column.