I'm getting an invalid cast exception which makes no sense whatsoever (see attachment).
It occurs no matter what the number in the cell is.
The ids variable is defined as so:c# Code:
List<int> ids = new List<int>();
Just below the line creating the error is another line...... which contains the same cast. This line does not produce the error whien I run the program without the first line.c# Code:
link_Main_RFITableAdapter.DeleteID((int)row.Cells[0].Value);
Can anyone help? This is pretty urgent: I can't do much until I've fixed it.
Thanks in advance,
Qu.




Reply With Quote