The FileHelpers method class RecordOperations.CreateEmptyDataTable()
is responsible for this, and it is not virtual.
I think the reason may be that it looks like a regular DataReader
via DataTable.Load(IReader)
, which would also create readonly rows.
However, it is easy to fix by going through columns instead of rows:
foreach (DataColumn col in dt.Columns) col.ReadOnly = false;
source share