Hey @Swathi_U ,
You can refer this thread How to get column names of data table to an array?
Thanks, Sanjit