1
Answer

Why Datarow deleted rows is not accessible in datatable

Vanaraj n

Vanaraj n

8y
228
1
I am having 5 rows in a datatable, it is binded with datagrid on screen i deleted one row , then same datatable i am using in some other method by using foreach method when coming to deleted row it shows datarows not accessible exception. But i didnt called for database,anyway that records should be available for deleting in db why when using foreach read that row exception is coming.
Answers (1)
0
Manas Mohapatra

Manas Mohapatra

NA 29.3k 3.3m 9y
Please provide your relevant code, what it doing when user enters a value in column2 and press enter..
0
Chinna Netha

Chinna Netha

NA 261 68.3k 9y
this is windows application c#
0
Rajeesh Menoth

Rajeesh Menoth

NA 24.7k 629.6k 9y
Hi,
 
Check this reference :
 
https://msdn.microsoft.com/en-us/library/ms366709.aspx