http://dev.csdn.net/develop/article/28/28470.shtm
我的邮件[email protected]

解决方案 »

  1.   

    自己改了一下,very good推荐
      

  2.   

    设置绑定的DataMember就行了
    this.dataGrid2.DataSource = this.ds1;
    this.dataGrid2.DataMember = "table1";this.dataGrid2.DataSource = this.ds1;
    this.dataGrid2.DataMember = "table1.relation12";relation12是两个表之间的关系名。
    楼主要定义他们的关系使用DataRelation对象。
      

  3.   

    1.  把DataGrid的AllowNavigation设为false;
    2.  oleDbDataAdapter1.Fill( dataSet1 );
        oleDbDataAdapter2.Fill( dataSet1 );
    3.  oleDbDataAdapter1.Update( dataSet1 );
        oleDbDataAdapter2.Update( dataSet1 );
      

  4.   

    谢谢各位的关注,本人受益非浅.csdn太好了