When I use:
Fill(...) with "select * from table where 0 = 1"
columns are initialized properly. I mean MaxLength for
text columns is set to -1.
FillSchema(...) with "select * from table"
causes a problem - MaxLength is set to 0, so it's
impossible to add rows to table because text is
exceeding maximum length and DataTable doesn't allow
to add such row.
Log in to post a comment.