Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

data grid not accepting data member

Status
Not open for further replies.

Zarcom

Programmer
May 7, 2002
1,275
CA
I am confused Does anyone know why I am getting this error?
The IListSource does not contain a data source named 'LineItem'.

I know that it is there in the way that I have declared it. It's there when I am in debugg mode.


DataGrid2.DataSource = myLineItems
DataGrid2.DataMember = myLineItems.LineItem.ToString
DataGrid2.DataBind()


When I run into the databind method in bold it craps out with that error. I am miffed. That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Sorry that was so quick I had a brain storm after I posted. I had set the datasource and member in the designer. I Assumed that when I reset the values in the code everything would be OK. However, it was not. When I took the values out of the designer everything worked again.

Sorry to take up you time ppl. That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top