Inserting row at specific index of DataTable

I am trying to add a blank row at a specific index of a DataTable. However, when I use invoke method to use InsertAt. I get an error that “InsertAt is not a member of System.Data.DataTable”

Change the TargetObject to be YourDataTable.Rows and it should work fine

Please have a look into it.!

Please review .NET docs for method definitions. You will need to create a new DataRow by calling your datatable.NewRow and setting the data inside that datarow before inserting it at the specified index.