Build Data Table

How many columns we can add while building a data table. Is there any limitation as I have to add around 50 columns?

According to MSDN: Datatable max rows is 16,777,216 and I can’t find the max columns limit; see: https://msdn.microsoft.com/en-us/library/system.data.datatable(v=vs.110).aspx

The real limitation would be on your hardware (memory, storage etc)

Adrian.

1 Like

Thanks!