Add data's to the newly added column in the existing Datatable

HI All,

I have a datatable that has a certain amount of rows with data . I’ve added a new column named “Date” and using Setordinal method re-ordered as the first column.

Example: datarow has 800 rows , so I need to add the year month in the first column to all 800 rows
var1=DateTime.Now.ToString(“yyyyMM”)

@vikumars1 Have you checked by adding the Default value to the Add Data Column and checked if it will update all the rows as well ?

@supermanPunch Yeah it’s working

1 Like

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