Click here to Skip to main content
15,911,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
I am using vs2008
I am getting error "Name GetData is not declared"

bindingSource1.DataSource = GetData(Select * From products)

what I am missing ?
I used the following:
Imports System.Data
Imports System.Data.SqlClient
Imports System
Imports System.Windows.Forms
Imports System.Drawing



thanks
Posted
Updated 11-Mar-11 22:28pm
v2

1 solution

The error tells that GetData() doesn't had any reference to it in the page. If the binding source GetData()is in any class files add the reference of your class files.
 
Share this answer
 
Comments
zafax_ 12-Mar-11 4:40am    
thanks !1 which one in refference am i missing ?

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