Woody Splawn said:
What's more fundamental than updating a bound field on a winform, even if
you are trying to do it from another tab? I mean Honestly!
Not much I suppose. But that is exactly why it is so unlikely to be some
odd control-on-a-tab "bug" it would surely show up in a search of Google if
it is a) a commonly done thing and b) didn't work. I use that simple test
for my code all the time... saying simply "this is too common, somebody
would have reported it, it must be my code." And it often is!
It sounds like you're saying "Figure it out for yourself". If so, with all
due respect, what are these news groups for?
In my mind newsgroups are a "resource" but that doesn't mean that people
stop doing whatever they are doing and whip up a solution for every
question. Did you stop working on your project in order to answer
somebody's question?
It isn't unreasonable to conclude because nobody popped in with "yeah my
does that too" or "no way" that none of the binding experts have any idea
why your combination of things is behaving the way it is. Herfried even
asked what that control was? I read your reply but you see that is an
indication that the problem has been made more complex than it needed to be.
Debugging is simply a matter of eliminating suspects... that's why if it
fails on a regular textbox then the message is more easily understood if it
is presented that way. Otherwise you're going to get "contact the
manufacturer of the control" as a response.
I suggested getting them off of the tabs because (if you recall) Fergus
wrote you might be firing an event when you changed the tabs back to look at
the control. Don't you see you aren't getting anywere with it because
you've complicated the problem. The goal is to "simplify."
I don't mean to underestimate you or anyone else. If I have, I appologize.
I feel like what I am asking are real basic, fair, questions.
No apology is necessary. I haven't done a million things but that doesn't
mean I don't know how a million things operate. I can read documentation
Look at it this way... if nothing else and if you posted some 50 or fewer
lines of code that somebody could cut and paste they could verify that it
isn't something in your setup. It isn't I'm sure but... you'd have
eliminated one source and at this point you have eliminated zero sources.
Again I can only state the binding experts don't know why it is acting up.
So I suggest that it isn't. You say it only does this on tabs... I suspect
that something "un obvious" is going on (perhaps in plain sight) but you
aren't seeing it. An event, a typo, a line in the docs that says "this is
how bound controls work" or something like that.
Sorry to be so long winded but I'm almost done. I could start up a test app
and bind a control but frankly I'm not that interested in doing so. Why?
Partly because if it works for me you still haven't eliminated a single
source of "your" problem. If you posted something that produces the error I
wouldn't have to try to manipulate code on my end trying to make it fail
right?
In any case. Whittle it down if nothing else "while" you wait for somebody
to tell you why it is behaving this way. That way when nobody comes up with
the answer (my guess) you will have made some headway.
Does it only do this when the control is bound to SQL Server? Does it do it
if bound to a memory-based dataset? Does it do it if you eliminate the
button click (a potential source of "hey the code in here is wrong")? If
removing the button from the equation still results in the problem then by
all means don't talk about or post the code related to the button. It has
no effect and it complicates your description. Somebody is going to offer
"hey maybe your click event is messed up" and you have to answer "no it
isn't" but you are still no closer...
Got it now? Smile, I'm on your side