Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Typed Dataset Cast Issue With Row

$
0
0
If possible can anyone advise why I would get a cast issue on the following code:

Change_LogDataSet.tblChangesRow TableRow = ChangeDataModule.ChangesDataTable.NewtblChangesRow(); //Create new row.
TableRow = ChangeDataModule.ChangesDataTable.Rows[0];



It gives the following error:

Posted Image

If I do it in a for each loop it works fine:

foreach (Change_LogDataSet.tblChangesRow TableRow in ChangeDataModule.ChangesDataTable)


Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>