Parallel for each activity will take ienumerable of datatable and not just one datatable tat is it takes like a collection of datatable
as you have passed a datatable variable its showing this error
Hi so there is an issue using DataColumnCollection, which is the type of dt.Columns, as it does not implement IEnumerable, which is what Parallel.ForEach expects. DataColumnCollection was introduced before generics were implemented in .NET and therefore aren’t really accomodated for.
i want to fill input fields from data table
so currently i m able to achieve it using
for each row in a data table and then inside it i am using simple for each column in datatable.columns
but using this it is filling one by one (sequential)
I am trying much more optimised way by filling the input fields all at a time
so i was hoping if parallal for each can help me .
Are there a lot of columns?
What have you set as the delay-before and delay-after?
You could just us parallel for each for the rows and then type into each field individually inside a parallel activity?
Yes,can you guide me for following error - Type ‘System.Collections.Generic.IEnumerable`1[System.Data.DataRow]’ cannot be serialized.,
i’m trying to loop datatable in parallel for each.