dataRowsCollection vs dataRow[]?

I’m using for each activity.

I have datatable “dt”.

dt.Rows has output of type dataRowsCollection.

but I can use that using for each activity.
What’s difference between dataRow[ ] and dataRowsCollection?

which type of collection is that? list, dictionary, array… what’s that?

DataRow is an array of data rows (fixed length)

where datarowscollection is a collection you can insert/delete rows to the DataRowsCollection.

More details are here -

Regards,
Karthik Byggari

1 Like

As @KarthikByggari said, the major difference is that you can insert/delete using the Add and Remove functions.

Additionally, a DataRowCollection is not a dictionary or array it is literally of type DataRowCollection.

4 Likes

Thank you so much. :slight_smile:

1 Like

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