Hi Folks,
I would like to insert ordered values in a datatable after condition, for example.
I have a column in which one of the lines is empty or zero, I would like to add the value in this column and add sequential values in the following lines.
Column “Prioridade” are actual values.
I would like something similar to “Corret - AFTER”
And I would like,
I would like to add values on all the following lines in the sequence, I think it would look something like this:
ProximaPrioridade = in_Criticidade.Rows(in_Criticidade.Rows.IndexOf(row1)+1)(“Prioridade”).ToString
I made a solution that ordered all rows in the table, I would like to order only from zero onwards.
I have used two methods to achieve your expected output. The Second method which I have commented is not so good if there are more records to be updated. Use only any one method. The other method should be commented. I have done it using a Sample Excel Sheet. Check the Input Sheet. Execute the Workflow. An output sheet should have been generated in the same excel. Check the Input and the Output and see if it is the right output you needed. UpdateColumnValues.zip (9.1 KB)