473,395 Members | 1,915 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

DataRecordInternal

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
Jun 27 '08 #1
1 2376
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

Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: progman417 | last post by:
Hello, In ASP.Net 3.5 unleashed, it states that EVAL is inefficient in template columns as it uses reflection (30% less efficient I read on one blog). Their suggested alternative is the...
1
OuTCasT
by: OuTCasT | last post by:
Hi I have filled a listbox with a column of information from my sql database Private Sub GetClients() Dim sqlCom As SqlCommand = New SqlCommand("select emailaddress from register where...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.