Cannot infer an element type, and Option Strict On does not allow ‘Object’ to be assumed. Specifying the type of the array might correct this error

I am getting this errors message please help

a new Object(){} would overcome the complaint missing derivation of the Object Type

But it looks like you want to add an empty row to the DT. So we would suggest to use

ArrayRow: topDT.NewRow.ItemArray


use DataRow: topDT.NewRow

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