我的提的问题也就是说如何像Delphi一样,使textBox之类的控件使用起来像Delphi中的DBEdit。更新数据难道一定要自己写SQL语句?

解决方案 »

  1.   

    blind 后直接update 就行了
      

  2.   

    bind后直接Update不行啊。
    有谁能够告诉我ADO.Net的电子书籍哪里有的下载?
      

  3.   

    http://www.netyi.net
    http://www.infoxa.com/asp/book/cx.asp
      

  4.   

    我是直接写sql语句来实现更新的
      

  5.   

    MSDN上面就有,写得还不错,搂主可以看看。
      

  6.   

    看了电子书籍,只提到一个“双向绑定”的一个概念,具体怎么做,也没讲到,倒是在ASP.NET中讲了不少。
    看来好像只有自己动手编辑Dataset,然后再调用适配器的Update方法了。
    不知道有谁能够知道?
      

  7.   

    hivak47(比尔)能否告诉我MSDN中哪个章节讲的?我怎么查不到啊!
      

  8.   

    希望能有人解答,我绑定textBox的同时也绑定了dataGrid
    我是这么处理的
    this.BindingContext[this.dS_GoodsOrder.Tables["goodsOrder"]].EndCurrentEdit();
    this.BindingContext[this.dS_GoodsOrder,"goodsOrder"].Position = this.dataGridOrder.CurrentRowIndex;
    if(this.dS_GoodsOrder.Tables["goodsOrder"].GetChanges() != null)
    {

    this.DA_GoodsOrder.Update(this.dS_GoodsOrder.GoodsOrder);
    MessageBox.Show("修改成功!","修改提示",MessageBoxButtons.OK, MessageBoxIcon.Information);
    }