Data row

Is array of data rows and data tables same thing

1 Like

Hi @Shashi123

The short answer is No.

Array is a dataType that can contain any type of data as units.

  • If we have an array of datarows then it is an array where each element is a datarow, so if you want to imagine a visual representation to differentiate it from a dataTable, it will be something like this

where each element is a dataRow

  • However a dataTable is a simple table, and it is a specific type of multidimensional array, that by default contains datarows and dataColumns:

image

But honestly they can be treated with the same way, I used the visual representations just to illustrate the difference, and you can always use the .CopyToDataTable() to go from array of datarows to a dataTable

Hope it helps.

7 Likes

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