Unable to create a new row in a datatable by using index

Hi everyone

I am trying to create a new row in a datatable by using this syntax

Datatable_variable=Datatable_Variable.Rows.InsertAt(datarow_variable,index)

but its showing some error like does not produce a value
please help me out to solve this issue (or) any other way to create a new row by using index

Thanks in advance

Hi @Robinnavinraj_S

Please try invoke code,

pass the datatable (argument type in/out),datarow and position in arguments

image

Thanks

2 Likes

Hi,

Can you try InvokeMethod activity as the following?

Regards,

1 Like

Thanks @Yoichi @prasath_S both of your solution works fine

3 Likes

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