Click here to Skip to main content
15,886,815 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dim IR As MyDataset.ItemsRow = myTable.Rows(0)

where MyDataset is the dataset file and myTable is DataTable.
I tried this but not working
MyDataset.ItemsRow IR = myTable.Rows[0];

Error 1 Cannot implicitly convert type 'System.Data.DataRow' to 'MyDataSet.ItemsRow'. An explicit conversion exists (are you missing a cast?)
Posted

1 solution

Try:
C#
MyDataset.ItemsRow IR = (MyDataset.ItemsRow) myTable.Rows[0];
 
Share this answer
 

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