Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
When running my program ,it run normally until two days later ,a exception named RowNotINTalbeException happened accdientally; to my vexation,I cannot reappear it. I test according to MSDN ,but i get the indexoutofrangeexception.
please help
Posted
Comments
syed shanu 1-Dec-14 1:04am    
Can you post your code here

1 solution

This link explains why you will get that error.

http://msdn.microsoft.com/en-us/library/system.data.rownotintableexception%28v=vs.110%29.aspx[^]

You are trying to access a row that is not in the datatable.

You need to look at a full stack trace to find the line of code causing the issue and then fix that line of code, likely checking to make sure the datarow even exists.
 
Share this answer
 
Comments
codeprojectddx 1-Dec-14 22:24pm    
thank you for your post ,I have seen the link you provided.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900