Jay,
Yeah noticed all the things you were talking about. Which makes me wonder
how C1 did it in the first place.
Ahh, now the plot thickens as I reveal "why" I'm doing this. We were using
C1's DataObjects, unfortuantly C1 doesn't do very good debugging and its
suprisingly leaky (because some references are never destroyed, which should
be, but because their object model gets a little confusing I can't find the
source of all the errors).
However, C1 is inherited off the ADO.NET model, which is what led us to go
with it in the first place. And they have events that trigger off
BeginEdit... However, I don't think they directly inherit from DataRow, but
do use it as a storeage basin if you will...
On my beginedits I run some code to do some manipulation etc... mainly
decryption of certain fields, was just trying to replicate that
functionality. I figured out most of C1 without having to do much work. I
think its an incredibly over priced package for not much value. We'll just
have to see what ObjectSpaces brings to the table.
Thanks for your help, I have a workaround, I just didn't want to do it. =)
-CJ
CJ,
Doh! you are right... DataRow.BeginEdit suspends events...
I was thinking only DataTable.BeginLoadData suspended events.
I'm not sure if Sceppa talks about it or not, I just find its easier
to
find
details about ADO.NET in Sceppa's book over MSDN itself...
Unfortunately DataRow.BeginEdit is not overridable either, so you cannot
derive from DataRow and add the functionality...
Hope this helps
Jay
"CJ Taylor" <[cege] at [tavayn] dit commmmm> wrote in message
Heh... my Sceppa book is sitting right next to me...
didn't find anything in there but I will look further.. I suppose that
would be a way to do it...
However, when you call BeginEdit it is supposed to suspend events from
firing... owever, I suppose I could get it from the col changed event
without a begin edit...
hmm...
that kinda sucks...
I could always catch the first colchanged event, call begin edit and add
my
own event handlers... but that just seems like too much work... oh well,
I
shall work with it.. Appreciate the help.
-CJ
CJ,
My Sceppa ADO.NET book is at the office.
I believe the closest you will get is to use DataTable.RowChanging &
DataTable.ColumnChanging.
Which doesn't identify the BeginEdit itself, however they identify when
the
values are changing...
Hope this helps
Jay
"CJ Taylor" <[cege] at [tavayn] dit commmmm> wrote in message
Alright on a DataRow you have the BeginEdit method
Where can I catch an event that tells me that method is being
fired
or
does
one exist?
Thanks,
-CJ