Error message I don't understand

S

simon

I create datagrid:

dgdMedia.DataSource = ds.Tables("mediaPlan")
dgdMedia.DataBind()

A field or property with the name 'a' was not found on the selected
datasource.

What this could be?

It worked before all day and know doesn't work any more?
I don't know why?

Thank you,

Simon
 
H

Hatim R

Hi Simon,

That error would kick in if a column in the table doesn't have a name 'a'
and you probably have in your grid/list/repeater something simillar to this
<%#DataBinder.Eval(Container.DataItem, "a"%>

if you can post the code it would be easier to determine what's wrong

Cheers
Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top