Thanks for the reply.
I tried to use the XmlDataDocument.DataSet property but i could not sync them. So I decided only use DataSet to represent my Tables.
However I now have another problem.
I created DataTable and a few Columns. When the first instance of the program runs, there is no problem of fetching or inserting data by DataRow objects, but when i save the DataSet to a file and restart the program, after the program reads the Dataset, fetching data process gives errors in converting data types. I tried to use casting but it gives errors casting data with same types..
For Example, I first used:
string tmp_username = (string)row["Username"];
string tmp_passwd = (string)row["Passwd"];
After error I used this one:
string tmp_username = row["Username"].ToString();
string tmp_passwd = row["Passwd"].ToString();
Both are resulted in error and in the DataTables "Username" and "Passwd" columns are defined as string. Is there a way to get rid of this problem
|