Dim  insertcomm,  updatecomm,  delcomm  As  SqlClient.SqlCommand  
 
                                       insertcomm  =  New  SqlClient.SqlCommand  
                                       updatecomm  =  New  SqlClient.SqlCommand  
                                       delcomm  =  New  SqlClient.SqlCommand  
 
                                     ....  
                                     With  delcomm  
                                               .Connection  =  myconn  
                                               .CommandText  =    "delete  from  sa_dds  where  id=@id    "  
                                               .Parameters.Add(  "@id  ",  SqlDbType.Int,  4,    "id  ")  
                                       End  With  
                                       myadapt.InsertCommand  =  insertcomm  
                                       myadapt.UpdateCommand  =  updatecomm  
                                       myadapt.DeleteCommand  =  delcomm  
                                       myadapt.Update(mydat,    "sa_dds  ")  
insert,update可以正常运行,delcomm却总是不能删除数据,id为主键,(执行以上代码前已经执行过dat.Rows.Remove