Add New Row with code only!

Hi everyone,

How do you do this suggestion through code only?

Continuing the discussion from How to add new value (data row) in existing Datatable?:

I ask because all previous/related post keep using the ‘activity’ itself and is fine, I just want to do it by code only, if any chance?

Regards,

Hi @MARIODC

U can try this code

dt.Rows.Add(array)

Regards

Nived N :robot:

Happy Automation :relaxed::relaxed::relaxed:

1 Like

Thx @NIVED_NAMBIAR,

I guess if you don’t have an array and just need an empty row or any character we can assign that as a ‘anyCharacterHere’ ?

Regards,

@MARIODC
YourDataTableVar.NewRow will return an empty datarow within the column structure of the datatable.

Maybe you are looking for this

2 Likes