string sqlstr = "Server =(local);database = SalesManagementSystem;uid =sa;pwd = 123";
            SqlConnection sqlcon = new SqlConnection(sqlstr);
            string str = "select * from T_BasicInformation_Customer";
            SqlDataAdapter da = new SqlDataAdapter();
            da.SelectCommand = new SqlCommand(str,sqlcon);
            SqlCommandBuilder scb = new SqlCommandBuilder(da);
            if (sqlcon.State == ConnectionState.Closed)
                sqlcon.Open();
            DataSet ds = new DataSet();
            da.Fill(ds, "T_BasicInformation_Customer");
            scb.GetUpdateCommand();
            da.Update(ds,"T_BasicInformation_Customer");
本人想通过CommandBuilder 编辑 DATAGRIDVIEW  上面的代码没能实现 ,我自己找不出,还请大家给看下