By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,659 Members | 1,678 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,659 IT Pros & Developers. It's quick & easy.

Collection was modified; enumeration operation might not execute.

P: 2
For Each row As DataRow In edt.Rows
dr = dt.NewRow
dr("slno") = i
dr("item_cd") = Convert.ToString(row("item_cd"))
dt1 = sp.FillDataTable("select ITEM_CD,SIBPART_CD from m033sibpart where comp_cd='" & Session("CompCd") & "' and ITEM_CD='" & row("item_cd") & "'")
dr("SIBPART_CD") = dt1.Rows(0)("SIBPART_CD")
dr("qty") = Convert.ToString(row("qty"))
dr("REMARKS") = Convert.ToString(row("REMARKS"))
dt.Rows.Add(dr)
i += 1
Next
May 11 '11 #1
Share this Question
Share on Google+
1 Reply


P: 2
Me getting the error when i run the code in second time
May 11 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.