B
Bill Todd
I have a DataSet with a DataTable and DataColumns that were created at
design time. If I call DataAdapter.Fill then DataSet.Clear then
DataAdapter.Fill again I get a constraint violation exception on the
second call to Fill.
However, if I call Fill then WriteXml then Clear then ReadXml I do not
get an exception.
If I call DataAdapter.Fill then DataSet.Reset then DataAdapter.Fill no
exception is thrown.
My question is, what is the difference between DataSet.Clear and
DataSet.Reset and why do I get an exception when I call Fill, Clear,
Fill?
Thanks,
design time. If I call DataAdapter.Fill then DataSet.Clear then
DataAdapter.Fill again I get a constraint violation exception on the
second call to Fill.
However, if I call Fill then WriteXml then Clear then ReadXml I do not
get an exception.
If I call DataAdapter.Fill then DataSet.Reset then DataAdapter.Fill no
exception is thrown.
My question is, what is the difference between DataSet.Clear and
DataSet.Reset and why do I get an exception when I call Fill, Clear,
Fill?
Thanks,