If possible can anyone advise why I would get a cast issue on the following code:
It gives the following error:
![Posted Image]()
If I do it in a for each loop it works fine:
Change_LogDataSet.tblChangesRow TableRow = ChangeDataModule.ChangesDataTable.NewtblChangesRow(); //Create new row. TableRow = ChangeDataModule.ChangesDataTable.Rows[0];
It gives the following error:

If I do it in a for each loop it works fine:
foreach (Change_LogDataSet.tblChangesRow TableRow in ChangeDataModule.ChangesDataTable)