//Delete Record : Disconnected public void DeleteBook(int BookId) { 1) DataRow dr1 = ds.Tables["tbl_Books"].NewRow(); 2) dr1 = ds.Tables["tbl_Books"].Rows.Find(BookId); 3) dr1.Delete(); 4) SqlCommand delcmd = new SqlCommand("Delete from tbl_Books where BookId=" BookId.ToString(), cn); 5) SqlCommandBuilder cmdb = new SqlCommandBuilder(da1); 6) da.DeleteCommand = delcmd; 7) da.Update(ds.Tables ["tbl_Books"]); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)