Problem with WriteXml in DataSet

T

tasiekk

I have typized DataSet. I can add to this dataset whatever i want but
some specific date isnt writed to xml file after i make WriteXml. When
i add row in code (not by hand in datagridview) it wont be Write to
xml. If i add realy long string to string column in a table, it wont be
write to xml. I dont know how to fix it becouse this method dont throw
any exceptions! And i dont know what is wrong.
Ty for any help.
 
T

tasiekk

I've been using DataSet.WriteXml and .ReadXml without any
problems. Did you use any of the XmlWriteMode settings?
If "new rows" were not written the you can try to call
DataSet.AcceptChanges(), but as i remember that was not
necessary.

cheers!
Marcin
I didnt use Mode's. But why u should ??
With or w/o Acceptchanges it is same problem :/
Still dont know what is wrong :(
 
?

=?ISO-8859-2?Q?Marcin_Grz=EAbski?=

Hi,

(e-mail address removed) napisa³(a):
I have typized DataSet. I can add to this dataset whatever i want but
some specific date isnt writed to xml file after i make WriteXml. When
i add row in code (not by hand in datagridview) it wont be Write to
xml. If i add realy long string to string column in a table, it wont be
write to xml. I dont know how to fix it becouse this method dont throw
any exceptions! And i dont know what is wrong.
Ty for any help.

I've been using DataSet.WriteXml and .ReadXml without any
problems. Did you use any of the XmlWriteMode settings?
If "new rows" were not written the you can try to call
DataSet.AcceptChanges(), but as i remember that was not
necessary.

cheers!
Marcin
 
?

=?ISO-8859-2?Q?Marcin_Grz=EAbski?=

(e-mail address removed) napisa³(a):
I didnt use Mode's. But why u should ??
With or w/o Acceptchanges it is same problem :/
Still dont know what is wrong :(

Could you give me your "adding row" code and DataSet
specification?

Marcin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top