Datatable, Excel, RowNumber

Hi Team,

I have a Data table mentioned below,

image

How to write the serial number as mentioned below,

image

Kindly help me to solve this.

Thanks in Advance

the very essential approach:

  • for each row in datatable | currentRow in dtDataVar - configure the index output: idx var
    • Assign Activity: currentRow(“SNo”) = idx + 1 OR as String (idx + 1).toString
1 Like

Alternate:

And:

OR:
DataTable reconstruction and LINQ by using Enumerable.Range(…

Thank you so much @ppr

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.