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: DataTable Class (System.Data) | Microsoft Learn

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

Adrian.

1 Like

Thanks!