467,926 Members | 2,108 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,926 developers. It's quick & easy.

DataBinder.Eval: error

Lam
hi
I wrote a aspx page in c#. It execute the query to SQL 2000 database
and return a DataTable table, bind it to the DataGrid and display on the
screen. The page refresh every 10 seconds.
it has been running successfully most of the time. but some times it gives
me error
"DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with
the name ID"

then it shows some error with the DataBind() method in dataGrid.
does any knows what's wrong?

Thanks a lot

Lam
Nov 19 '05 #1
  • viewed: 1145
Share:
2 Replies
You have a bug in your code where the DataTable doesn't have what you think
it should...seriously, it's hard to guess at what the issue could be, but it
certainly seems to be something in the way you are doing things...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Lam" <ja**********@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
hi
I wrote a aspx page in c#. It execute the query to SQL 2000 database
and return a DataTable table, bind it to the DataGrid and display on the
screen. The page refresh every 10 seconds.
it has been running successfully most of the time. but some times it
gives
me error
"DataBinder.Eval: 'System.Data.DataRowView' does not contain a property
with
the name ID"

then it shows some error with the DataBind() method in dataGrid.
does any knows what's wrong?

Thanks a lot

Lam

Nov 19 '05 #2
I had the same error this morning using nested datalists. I selected a
field in my SQL and was getting an error that it wasn't a relation or
column in my datatable. Apparently I forgot to add runat="server" to my
datalist.

Look for the little things.

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Michelle Keys | last post: by
4 posts views Thread by Søren Lund | last post: by
2 posts views Thread by jack | last post: by
2 posts views Thread by Oleg Ogurok | last post: by
1 post views Thread by Nathan Sokalski | last post: by
4 posts views Thread by CharlesA | last post: by
3 posts views Thread by Kevin Blount | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.