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
Ilkin Turk
NA
349
161.9k
DataTable delete row
Apr 11 2013 6:42 AM
Hello When I try to delete row from datatable get error : Collection was modified; enumeration operation might not execute.
My code is below :
foreach (DataRow dr in dt.Rows)
{
if(dr["Name"]=="")
{
dr.Delete();
}
dtr.AcceptChanges();
}
If any idea give please.Or may be there are another way.
Reply
Answers (
1
)
problem in c#
Is C# really become a dynamic programming language? Now