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
kalu singh rao
291
6.4k
109k
Collection was modified; enumeration operation might not exe
Nov 12 2014 12:41 AM
I am working on in vb.net . Here i want to remove row of datatable using rowid. All is working fine but after remove row from datatable then i got a error message is
Collection was modified; enumeration operation might not execute
. I am using following code for delete row from datatable.
vb.net code:-
Dim dr As DataRow
For Each dr In dt.Rows
If dr("RowID").ToString() = dt.Rows(0)("RowID").ToString() Then
dt.Rows.Remove(dr)
End If
Next
Reply
Answers (
3
)
create table for every user
C# open source projects