DataRecordInternal is internal type as its name suggests, and it warps data
got from DataReader to a datarecord. It's used by DBEnumerator.Move method.
Can you show the code how you databind the result set? Are you using
GetEnumerator method or DBEnumerator type somewhere?
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke http://teemukeiski.net
<ma**********@gmail.comwrote in message
news:05**********************************@56g2000h sm.googlegroups.com...
Hello
I have a problem in my repeater's OnItemCreated method.
I'm trying to get the data row for the repeater like this:
Dim datar As DataRow = CType(e.Item.DataItem, DataRow)
but the compiler complains "Unable to cast object of type
'System.Data.Common.DataRecordInternal' to type
'System.Data.DataRow'". What the hell is a DataRecordInternal? And why
isn't my DataItem a DataRow?
Can someone help?
Ta,
Mark