How to add empty row(front) in data table?

i need to add empty row in datatable in the first row of the table

for example

aaa bbb ccc
1 2 3
4 5 6
7 8 9

Hi,

Can you try to use DataRowCollection.InsertAt method as the following?

Sample
Sample20240307-2.zip (3.1 KB)

Regards,

Hi @domsmgtmeet22

FYI, Another Approach

dt.Rows.InsertAt(DT.NewRow(), 0)



Sequence38.xaml (9.8 KB)

Hope it helps!!

before header insert row ???

Hi @domsmgtmeet22

Do you want to insert a row before header?

Regards

yes, i need header row in datatable

Hi @domsmgtmeet22

Input:
image

dt.Rows.InsertAt(DT.NewRow(), 0)

Output:
image

Regards

example share your xls file

Hi @domsmgtmeet22

TIME.xlsx (9.4 KB)

Regards

where sequence file…

Hi @domsmgtmeet22

Sequence38.xaml (7.7 KB)
TIME.xlsx (8.6 KB)

Regards