奇怪,怎么 TableAdapter 没有 Update() 方法的?

解决方案 »

  1.   


    private SmpleOne.dbScoreDataSetTableAdapters.scoreViewTableAdapter scoreViewTableAdapter;scoreViewTableAdapter .Update();
    没有上面的这个Update()啊?
      

  2.   

    你的TableAdapter是什么类型,看帮助中的实例可是有的
    try
    {
        this.Validate();
        this.customersBindingSource.EndEdit();
        this.customersTableAdapter.Update(this.northwindDataSet.Customers);
        MessageBox.Show("Update successful");
    }
    catch (System.Exception ex)
    {
        MessageBox.Show("Update failed");
    }
      

  3.   

    找到了,要把主键也显示出来才有Update()方法,
     请问:
    能不能更新视图的啊?
    能不能更新视图的啊?
    能不能更新视图的啊?视图没有主键的,我又不会了!!!