----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: pradeep145 Message 1 in Discussion Hi all i am facing a problem with dataset. i am removing some selected rows from dataset using Remove method. My syntex is dsDelete.Tables[0].Rows.RemoveAt(nRowIndex); when i pass this dateset in my DLL to make final changes in database then i found database is not changed.it is really strange. my DLL function has the following code string sqlQuery = "select * from tblDepartments"; SqlDataAdapter dept = new SqlDataAdapter(sqlQuery,conEL); SqlCommandBuilder custCB = new SqlCommandBuilder(dept); dept.Update(dsDeptt); dsDeptt.AcceptChanges(); but if instead the remove method if i use delete method like this dsDelete.Tables[0].Rows[nRowIndex].Delete(); and pass the dataset to mt DLL it make changes in the database. pls guide me what should i do so that remove method camn make changes in my database for some reason i can use only Remove method not the delete method. it is very urgent. pls help me as soon as poosible. Thanks & Regds Pradeep ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/BDotNet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
