using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace textroot
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.dataGridView1.Dock = DockStyle.Fill;
//创建数据集对象
DataSet1.Datatable1DataTable tempTable = new DataSet1.Datatable1DataTable();
//填充数据集
this.dataTable1TableAdapter.Fill(tempTable);
//数显控制
this.dataGridView1.DataSource = tempTable; }
错误 1 “textroot.Form1”不包含“dataTable1TableAdapter”的定义,并且找不到可接受类型为“textroot.Form1”的第一个参数的扩展方法“dataTable1TableAdapter”(是否缺少 using 指令或程序集引用?) F:\My Docments\Visual Studio 2008\Projects\textroot\textroot\Form1.cs 20 18 textroot我问我们老师,老师给我说要添加到命名空间,我是初学,对于using指令 和一些C#的代码不太熟悉。
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace textroot
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.dataGridView1.Dock = DockStyle.Fill;
//创建数据集对象
DataSet1.Datatable1DataTable tempTable = new DataSet1.Datatable1DataTable();
//填充数据集
this.dataTable1TableAdapter.Fill(tempTable);
//数显控制
this.dataGridView1.DataSource = tempTable; }
错误 1 “textroot.Form1”不包含“dataTable1TableAdapter”的定义,并且找不到可接受类型为“textroot.Form1”的第一个参数的扩展方法“dataTable1TableAdapter”(是否缺少 using 指令或程序集引用?) F:\My Docments\Visual Studio 2008\Projects\textroot\textroot\Form1.cs 20 18 textroot我问我们老师,老师给我说要添加到命名空间,我是初学,对于using指令 和一些C#的代码不太熟悉。
解决方案 »
- 请问下 我把FORM程序移植到WPF应用程序有问题吗
- c# 强类型 强类型集合
- WinForm程序的快速开发
- 野蛮女友好可怕。。。。。。。。。。。。
- please help me!!!!!
- 写了一个winform应用程序,在我的电脑上没问题,但在另外的电脑上却执行不完?
- 请问哪里可以下到完整的天轰穿的视频教程
- 请问高手,我该如何进阶
- SQLserver中有没有读完记录后自动加一的变量
- 请问如何使用c#阻止一个程序运行多次?[急用]
- 急!!! 怎么得到oracle表的属性(字段的类型、长度等) 并且对它添加、修改
- 一个字符串包含<br>我要把他绑到ListBox上显示,当有<br>的时候就要在ListBox上换行
*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) http://feiyun0112.cnblogs.com/
我的MSN [email protected]