将所有DataSet出错的地方换成dataSet11

解决方案 »

  1.   

    另外事例化BindData:
    CurrencyManager BindData ;
      

  2.   

    C:\Documents and Settings\007\桌面\装vc代码\WindowsApplication1\Form1.cs(568): 
    “System.Data.DataSet”表示“类”,此处应为“变量”
    C:\Documents and Settings\007\桌面\装vc代码\WindowsApplication1\Form1.cs(595): 
    “System.Data.DataSet”表示“类”,此处应为“变量”
    C:\Documents and Settings\007\桌面\装vc代码\WindowsApplication1\Form1.cs(530): 
    “System.Data.DataSet”表示“类”,此处应为“变量”
    C:\Documents and Settings\007\桌面\装vc代码\WindowsApplication1\Form1.cs(531): 
    “System.Data.DataSet”表示“类”,此处应为“变量”
    上述错误地方应更改我为:System.Data.DataSet->DataSet11
      

  3.   

    _jfeng(静心)老兄和各位大侠你好.我把所有DataSet出错的地方换成dataSet11.可还是报错如下,请问我还该怎样改啊?
    C:\Documents and Settings\007\桌面\装vc代码\WindowsApplication1\Form1.cs(47): 类型或命名空间名称“DataSet111”在类或命名空间“WindowsApplication1”中不存在(是否缺少程序集引用?)我把工程的代码都贴出来了,如下using System;
    using System.Drawing;
    using System.Collections;
    using System.ComponentModel;
    using System.Windows.Forms;
    using System.Data;
    using System.Data.OleDb;
    using System.Data.Common;
    using System.IO;namespace WindowsApplication1
    {
    /// <summary>
    /// Form1 的摘要说明。
    /// </summary>
    public class FrmMainOrder : System.Windows.Forms.Form
    {
    private System.Windows.Forms.GroupBox groupBox1;
    private System.Windows.Forms.GroupBox groupBox2;
    private System.Windows.Forms.ComboBox comboBox1;
    private System.Windows.Forms.Button BtInquire;
    private System.Windows.Forms.Button BtExit;
    private System.Windows.Forms.TextBox TxtSearchValue;
    private System.Windows.Forms.Label label1;
    private System.Windows.Forms.Label label2;
    private System.Windows.Forms.Label label3;
    private System.Windows.Forms.Label label4;
    private System.Windows.Forms.Label label5;
    private System.Windows.Forms.TextBox OrderID;
    private System.Windows.Forms.TextBox OrderDate;
    private System.Windows.Forms.TextBox CustTel;
    private System.Windows.Forms.TextBox CustName;
    private System.Windows.Forms.TextBox CustAddress;
    private System.Windows.Forms.Button btnAdd;
    private System.Windows.Forms.Button btnEdit;
    private System.Windows.Forms.Button btnDelete;
    private System.Windows.Forms.Button btnCancel;
    private System.Windows.Forms.Button btnSave;
    private System.Windows.Forms.Button btnPrior;
    private System.Windows.Forms.Button btnNext;
    private System.Data.OleDb.OleDbDataAdapter oleDbDataAdapter1;
    private System.Data.OleDb.OleDbCommand oleDbSelectCommand1;
    private System.Data.OleDb.OleDbCommand oleDbInsertCommand1;
    private System.Data.OleDb.OleDbCommand oleDbUpdateCommand1;
    private System.Data.OleDb.OleDbCommand oleDbDeleteCommand1;
    private System.Data.OleDb.OleDbConnection oleDbConnection1;
    private WindowsApplication1.DataSet111 dataSet1111;
    private System.Windows.Forms.DataGrid DBGrid;
    /// <summary>
    /// 必需的设计器变量。
    /// </summary>
    private System.ComponentModel.Container components = null; public FrmMainOrder()
    {
    //
    // Windows 窗体设计器支持所必需的
    //
    InitializeComponent(); //
    // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
    //
    } /// <summary>
    /// 清理所有正在使用的资源。
    /// </summary>
    protected override void Dispose( bool disposing )
    {
    if( disposing )
    {
    if (components != null) 
    {
    components.Dispose();
    }
    }
    base.Dispose( disposing );
    }
      

  4.   

    代码太长了,发不上来,我只有把整个工程发上来了工程如下
    http://www.jzfybjy.com/liou/sccx/uploadfile/444.rar
      

  5.   

    你的变量定义有问题呀
    1.private System.Data.OleDb.OleDbDataAdapter oleDbDataAdapter1;
    2.private System.Data.OleDb.OleDbConnection oleDbConnection1;
    3.private WindowsApplication1.DataSet111 dataSet1111;
    改为private WindowsApplication1.DataSet1 dataSet11;
    上面定义为dataSet11你下面引用为DataSet11,注意大小写!!!
    还有你定义的变量名为oleDbConnection1 引用却是oleDbConn
    你的错误都 是这个引起的你自己把它改回来就可以了。
    oleDbConn.ConnectionString=myConnString;
    oleDbConn.Open();
    oleDbData.Fill(DataSet11);
      

  6.   

    好不容易找了一个这样的c#工程,又不能用,我想在网上再难找到了.真遗憾.而我来改他的工程,水平又不够啊,错误百出啊.
    大侠能不能根据他的这工程,帮忙改一个类似的用oledbDataAdapter连access的,只要有数据添加和查询修改删除等功能,如果能附带用crystal report生成报表和注释就最好了.谢谢
    正常运行的c#数据库工程(winform)
    http://www.jzfybjy.com/liou/sccx/uploadfile/2004090421354118428.rar
      

  7.   

    好不容易找了一个这样的c#工程,又不能用,我想在网上再难找到了.真遗憾.而我来改他的工程,水平又不够啊,错误百出啊.
    大侠能不能根据他的这工程,帮忙改一个类似的用oledbDataAdapter连access的,只要有数据添加和查询修改删除等功能,如果能附带用crystal report生成报表和注释就最好了.谢谢
    正常运行的c#数据库工程(winform)
    http://www.jzfybjy.com/liou/sccx/uploadfile/2004090421354118428.rar