Tana20
(Tana20)
1
Hi All,
I’m stuck in this task
Example:
Input: From Sheet1
OutPut:To Sheet2
I tried using Filter Data Table but it does not admit duplicate columns:
Also, I’m trying with “Select” but I’m not pretty sure how to use it:
Note: Note: I can’t use unofficial activities
Any help would be greatly appreciated!
1 Like
park363
(UncleDev)
2
There is no way to have same column name in a tabledata.
I recommend you to change name as price2 and to use SetOrdinal method.
assumption : dt is original tabledata.
[c# sample code]
- copy into new datatable
- add new column by Add Method with expression
(new column value is filled as Price column value)
- change ordinal by SetOrdinal Method
DataTable newdt = dt.Copy();
newdt.Columns.Add(“Price2”,typeof(string),“Price”);
newdt.Columns[“Price2”].SetOrdinal(1);
Source Datatable
ID|Name|Price|Fee
New Datatable
ID|Price2|Name|Price|Fee
2 Likes