Is there a limit on the number of DataColumns that I can add to a DataTable?

I cannot find references to the limit on the number of DataColumns that I can add to a DataTable. A DataTable will not be generated from an SQL query, but rather synthesized from other data.

Thanks Matthew

+3
source share
1 answer

The method signatures for AddAt and RemoveAt and Item for the DataColumnCollection class accept Int32. This is the object that the DataTable class uses to store columns.

This means that it can have 2,147,483,647 columns that give or take 1 or 2 for good measure. :)

+5
source

Source: https://habr.com/ru/post/1716718/


All Articles