TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Andrzej Wegierski
NA
705
0
RowState case (Solved)
May 22 2004 3:39 AM
May be someone knows, what's happend: I use DataTable dtPotr with Serial column on MSSQL (string - because of I use it with many databases): dtPotr.Columns.Add("nrrek",typeof(String)); Next, I add some rows to it (serial is temporary 0): dPotr.Rows.Add(new object[]{ "0",.... }); Next, I set serial values (properValue is int) in loop: foreach(DataRow dr in dtPotr.Rows) dr["nrrek"]=properValue; Some of records (about half) have RowState changed from Inserted to Modified after it ... SORRY. It's my error. I found AcceptChanges() before loop in some cases.
Reply
Answers (
1
)
connecting to Access DB from C#
primary key error