cjard
Well-known member
- Joined
- Apr 25, 2006
- Messages
- 7,081
- Programming Experience
- 10+
For a while now I've been writing this:
DirectCast(MyTypedDataTable.Rows(0), MyTypedDataTableRow).SomeNamedColumn ...
Seems I overlooked the fact that there was a default property of the table itself that returns a typed datarow:
MyTypedDataTable(0).SomeNamedColumn
If anyone else has any tips to reduce the amount of casting needed, I'd love to hear them
DirectCast(MyTypedDataTable.Rows(0), MyTypedDataTableRow).SomeNamedColumn ...
Seems I overlooked the fact that there was a default property of the table itself that returns a typed datarow:
MyTypedDataTable(0).SomeNamedColumn
If anyone else has any tips to reduce the amount of casting needed, I'd love to hear them