How to convert datarow item to dictionary

how to convert DataRow item to dictionary ?

Hi @Mohamed_Hassan1
what should be key and value when u are converting datarow to dictionary. can u please elaborate on that please?

Give a try on following

Assign Activity
LeftSide = dictRowData | DataType: Dictionary (Of String, Object)
Right side:

(From i in Enumerable.Range(0, YourDataRowVar.ItemArray.Count)
Let name  = YourDataRowVar.Table.Columns(i).ColumnName
Select t=Tuple.Create(name, YourDataRowVar(i))).ToDictionary(Function (x) x.Item1, Function (x) x.Item2)
3 Likes