DataSet does not support System.Nullable in Export March 4, 2023 by Tarik try with dt.Columns.Add(pi.Name, Nullable.GetUnderlyingType( pi.PropertyType) ?? pi.PropertyType);