Why Datarow deleted rows is not accessible in datatable
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
Please provide your relevant code, what it doing when user enters a value in column2 and press enter..
0
this is windows application c#
0
Hi,
Check this reference :
https://msdn.microsoft.com/en-us/library/ms366709.aspx