Hi. I am trying to add columns to a DataTable where the column type is held in a variable called oDataType. With the following line I get the error: "Value of type string cannaot be converted to System.Type"
dt.Columns.Add(oColumnName_InGrid, "typeof(" & oDataType & ")")
I based my code on the following example
'dt.Columns.Add("Row No", typeof(Int32))