How to add new data to dictionary (string, Tuple<string,string>) using datarow

I want to add data to dictionary of string,Tuple(string,string).

How to assign dictionary of key to tuple value.

Assign-
Dict(row(“Employee”).tostring)=Tuple(row(“EmpId”).tostring,row(“EmpName”).tostring)

Giving error.

How to assign values to key employee with value in tuple of string, string.

Or how to convert datarow to other datatable.
Datarow.CopyToDatatable not working.

HI @Mansi_Mhatre

I’m not sure about this expression, just have a try

DT_Master.AsEnumerable().GroupBy(Function(r) Tuple.Create(r("EmpId").ToString,r("EmpName").ToString)).Select(Function(g) g.First).CopyToDataTable

Looping @Yoichi to look on this

Regards
Gokul

Hi,

Can you try as the following?

Dict(row("Employee").ToString) = Tuple.Create(row("EmpId").ToString,row("EmpName").ToString)

Regards,