数据源属性尚未声明 [英] datasource Property has not been declared

查看:87
本文介绍了数据源属性尚未声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,
我正在使用vs2008
我收到错误消息未声明名称GetData"

bindingSource1.DataSource = GetData(Select * From products)

我想念的是什么?
我使用了以下内容:

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

推荐答案

该错误表明GetData()在页面中没有对其的任何引用.如果绑定源GetData()在任何类文件中,请添加类文件的引用.
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.


这篇关于数据源属性尚未声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆