dataview and strongly typed datasets

  • Thread starter Thread starter Marc Pelletier
  • Start date Start date
M

Marc Pelletier

Hello all,

Is there any way to get a typed datarow out from a dataview?

Failing that is there a way to take the row I've referenced from the
dataview and cast it to a typed datarow?

Same question, I know.

cheers

Marc Pelletier
 
Hi Marc,

Actually there is :)

DataRowView has a Row property which you should cast to desired strongtyped
row type.
 
Actually there is :)

DataRowView has a Row property which you should cast to desired
strongtyped row type.

Right! This works!
MyDataset.MyRow row = ( MyDataset.MyRow ) dv[index].Row;

I thought I had tried every permutation, but missed the obvious one.

Thanks

Marc Pelletier
 
Back
Top