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.!

https://docs.microsoft.com/en-us/dotnet/api/system.data.datarowcollection.insertat?view=netframework-4.8#System_Data_DataRowCollection_InsertAt_System_Data_DataRow_System_Int32_

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.