Hello,
I have a data table and would like to add an empty rows above the last line of the data table - please advise how I could do this
Cheers
Hello,
I have a data table and would like to add an empty rows above the last line of the data table - please advise how I could do this
Cheers
Please put a input and output excel
HI,
Thanks for your reply!
Do you mean the input data table then the way I would like the data table to look
Cheers
Yes that is what i want
Input:
What I would like:
The number of rows of data are variable hence why I cannot just use an add row activity and specify where to add the row
Cheers!
Hi @E.T.S
Can you try the below
YourDataTable.Rows.InsertAt(YourDataTable.NewRow(), YourDataTable.Rows.Count - Math.Min(1, YourDataTable.Rows.Count))
Input:
Output:
Cheers!!
Hi @E.T.S
Use the below code in Invoke code:
dt.Rows.InsertAt(dt.NewRow(), dt.Rows.Count - 1)
Invoked Arguments:
Input:
Output:
Hope it helps!!
That works thank you!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.