-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: rnk
Message 1 in Discussion

Hi,  I am trying to delete a row from datagrid, and from database my code (is given 
below) is working up to delete a row from data base,  but it is not updating the 
database,   Please help me...   My code is in the Remove button is:   CurrencyManager 
cm = (CurrencyManager)this.BindingContext[dataGrid2.DataSource,   
dataGrid2.DataMember]; 
DataRow dr=dataSet11.Tables["userplan"].Rows[cm.Position]; 
if (MessageBox.Show ("Are you sure that you want to Delete Deck " + 
dr["userplan"].ToString() +"?", "Delete Deck", 
MessageBoxButtons.YesNo,MessageBoxIcon.Question,MessageBoxDefaultButton.Button1)== 
DialogResult.Yes) 
{ 
dr.Delete(); 
dr.AcceptChanges(); 
dataSet11.AcceptChanges(); 
odbcDataAdapter3.Update(dataSet11,"userplan"); 
dataGrid2.Refresh(); 
}

-----------------------------------------------------------

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]

Reply via email to