Click here to Skip to main content
15,886,830 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.

I have a gridview I want to populate with an ObjectDataSource.

Problem is, when I use the wizard in VS2010, I cannot find the method I just created (and returns a List), in the second stage of the wizard. Instead I can see alot of others, probably inherited, methods.

What is wrong here?

Thanks alot for your time!


Kind regards,

Lars
Posted

1 solution

Have you set is as a public static method? If I recall (and it's been a while), that is required for it to display in the list of methods.
 
Share this answer
 
Comments
lvq684 4-Aug-10 10:26am    
Thanks alot for your answer!

I was a bit wrong. I actually cannot see the page the objectdatasource belongs to in the "Business object list". (I could before, since i set have set it manually).

So the question now is: How do I make the hosting page to the ODS show in the "Business object list" dropdown in the menu?

thanks! :)
R. Giskard Reventlov 4-Aug-10 10:43am    
You need to clarify: I can't really understand what you are asking.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900