HOW DO I CHANGE THE HEADER NAMES OF DATATABLE?

Hi Team,

As I am in between the process of data manipulation in the datatable, I need to perform the following:-

Suppose the raw datatable is as follows: dtTest

image

I need to change the Header Names of this dtTest such that:-

image

Where I replaced the headers from dtTest as
from Column-0 to Activity_N
from Column-1 to Case_Num
from Column-2 to Responsib
from Column-3 to Incident_D
from Column-4 to Activity_Ty

But I was not able to find the way where I can change the header names of the datatable.

Please help me with the most efficient approach.

Thanks and Regards,
@hacky

@Palaniyappan, @HareeshMR Guys please help me with this

@hacky
the new ColumnName can be set with datatableVar.Columns(“oldColumnName”).ColumnName
do this within an assign activity

3 Likes

@ppr

Do you mean:

dtTest.Columns(“Column-0”).ColumnName = “Activity_N”

for first cell and so on…???
Please confirm

1 Like

Yah that would work
Cheers @hacky

1 Like

Yes I do

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.