List:MySQL and .NET« Previous MessageNext Message »
From:Frank Date:March 15 2005 12:21am
Subject:Re: Error on Update - Connection already Open()
View as plain text  
DABolle is a private field inside the Form class that contains the bound 
textboxes (hope this is what you asked). The code I posted is an handler of 
a button click event also contained in the form.
Thanks for the answer,
Frank

----- Original Message ----- 



> Ok, my next question is as follows:  Is the DABolle DataAdapter declared 
> publicly?  If it is how did you give it it's Update Command?
>
> Brandon Schenz
> www.schenzcustomdesigns.com
>
> -----Original message-----
>> Here's the code (I'm trying to update using bound textboxes and 
>> dataadapter
>> with commandbuilder):
>>
>> private void btnF9_Click(object sender, System.EventArgs e)
>> {
>>    try
>>    {
>>     //ConnBolle.Close();
>>     ConnBolle.Open();
>> 
>> DSBolle.Tables[0].Rows[this.BindingContext[DSBolle].Position].EndEdit();
>>     DABolle.Update(DSBolle.Tables[0]);
>>     ConnBolle.Close();
>>    }
>>    catch (DBConcurrencyException exc)
>>    {
>>     MessageBox.Show(exc.Message);
>>     ConnBolle.Close();
>>    }
>> }
>>
>>

Thread
Error on Update - Connection already Open()Frank10 Mar
  • Re: Error on Update - Connection already Open()SGreen10 Mar
    • Re: Error on Update - Connection already Open()Frank11 Mar
      • Re: Error on Update - Connection already Open()Reggie Burnett15 Mar
    • Re: Error on Update - Connection already Open()Frank14 Mar
      • Re: Error on Update - Connection already Open()Mike Hillyer14 Mar
    • Re: Error on Update - Connection already Open()Frank15 Mar
    • Re: Error on Update - Connection already Open()Frank16 Mar
Re: Error on Update - Connection already Open()brandon14 Mar
  • Re: Error on Update - Connection already Open()Frank15 Mar
Re: Error on Update - Connection already Open()brandon15 Mar
  • Re: Error on Update - Connection already Open()Frank15 Mar
Re: Error on Update - Connection already Open()streamlake15 Mar