cancel
Showing results for 
Search instead for 
Did you mean: 

DataTable within a DataTable - Code Stage

Ed_PaulSantos
Level 3
Hi, I am trying to use code stage to return a Collection that also has a collection inside and I'm having trouble with creating a DataTable that has a column with type DataTable. Any thoughts regarding the approach on this? Needing your expert advice. Thanks, Ed
2 REPLIES 2

FrankBaumann
Level 2
Hi Ed, Here is some example code that you can use to add a nested datatable column 'Declare a new Datatable Dim dt As DataTable = New DataTable 'Add your Columns dt.Columns.Add(""ID"", GetType(Integer)) dt.Columns.Add(""Value"", GetType(DataTable)) 'Add a row dt.Rows.Add() 'Assign your output collection col_Out = dt

Ed_PaulSantos
Level 3
Hi baumannf, This is great! Thanks! Ed