Error message I don't understand

  • Thread starter Thread starter simon
  • Start date Start date
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
 
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
 
Back
Top