Re: Auto update data on RowChanged

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I am guessing when the Action is Changed, but not the other ones.

You will have to experiment.

"Wigno" <Wigno@xxxxxxxxx> wrote in message
news:pan.2005.08.30.18.49.28.773952@xxxxxxxxxxxx
> On Tue, 30 Aug 2005 14:38:23 -0400, Marina wrote:
>
>> It is probably because calling Update, commits the data to the rows by
>> calling AcceptChanges. Which in turn fires the RowChanged event.
>>
>> Check the Action property of the arguments, and only do the Update at the
>> right time.
>>
>> "Wigno" <Wigno@xxxxxxxxx> wrote in message
>> news:pan.2005.08.30.16.33.37.858848@xxxxxxxxxxxx
>>> On Tue, 30 Aug 2005 18:19:17 +0200, Cor Ligthert [MVP] wrote:
>>>
>>>> Wigno,
>>>>
>>>>> If i put mySQLDataAdapter.Update(myDataTable) in a
>>>>> myDataTable_RowChanged
>>>>> event i have strange behavior
>>>>>
>>>> What do you call a strange behavior?
>>>>
>>>> Comes there smoke out of the computer?
>>>>
>>>> Cor
>>>
>>> When i call mySqlDataAdapter.Update(myDataTable) in
>>> myDataTable_RowChanged the datatable fires another RowChanged event and
>>> another's one until the exception a datareader is already open .....
>>>
>>>
>>>
>
>
> What is the right time?
>
>
>
>
>
>


.