TabControl&databind problem

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

myTab control got 2 pages,
in page1, i need to type in customer code, and the customer information will
be displayed in page 1 & page2.
I am using databinding to move the record position.
Before bmCustomer.addnew() . Everything goes fine, I can see the data in
both Page2.
However, after bmCustomer.addnew(), I type a customer code, [the back end
store procedure will query that code and the return a datarow ]
[In page 1] Me.txtCustAdd1.text = drCust(..... etc) <-- works fine and i
can see the data
[in page2] Me.txtCustInform.text = drCust(....etc) <- i can't see the data
in page 2.

I use messagebox to test the page2 data, it return a correct value.
BUT EVERY THING IN PAGE 2 is blank , why ??
I add 'Me.Tab2.refresh()' it seems useless. if I cut the textbox
Me.txtCustInform.text from page2 and then paste in page1.
It displays very well. What happend about Tab page2 ???

FromAgnes
 
Hi Agnes,

You have placed this message before and got no answer, which mostly mean
that your question is to complex, by adding more you do not get more
answers, I think that you get more answers when you try to bring it back to
the essentials and than do it step by step.

Just my thought


Cor
 
Dear Cor
Agree with U , I am so tired and worry to switch our system from VFP
to VB.Net. I need to perform the same basic features from vfp application
to vb.net and I found it is a harsh task.
I will try to check it again.
Btw, I listen to your advice and normalize the tables which under 100
fields, using the most simple way (data adapter) to insert the data.
Now, it is sucessfuly to update / insert the record.

Thanks for your kind help.
From Agnes
p.s- I am vfp developer in Hong Kong , sorry for my poor english

Cor Ligthert said:
Hi Agnes,

You have placed this message before and got no answer, which mostly mean
that your question is to complex, by adding more you do not get more
answers, I think that you get more answers when you try to bring it back to
the essentials and than do it step by step.

Just my thought


Cor
myTab control got 2 pages,
in page1, i need to type in customer code, and the customer information will
be displayed in page 1 & page2.
I am using databinding to move the record position.
Before bmCustomer.addnew() . Everything goes fine, I can see the data in
both Page2.
However, after bmCustomer.addnew(), I type a customer code, [the back end
store procedure will query that code and the return a datarow ]
[In page 1] Me.txtCustAdd1.text = drCust(..... etc) <-- works fine and i
can see the data
[in page2] Me.txtCustInform.text = drCust(....etc) <- i can't see the data
in page 2.

I use messagebox to test the page2 data, it return a correct value.
BUT EVERY THING IN PAGE 2 is blank , why ??
I add 'Me.Tab2.refresh()' it seems useless. if I cut the textbox
Me.txtCustInform.text from page2 and then paste in page1.
It displays very well. What happend about Tab page2 ???

FromAgnes
 
Hi Agnes,

Every time you go further in dotNet, you see that you did it yesterday in a
stupid way.
There are so much classes that there is always a better way.

However, I hear now that you are making much progress and that is great.

Do not say sorry for your English, most visitors and I think 50% of the
regulars are not from native English speaking countries.

There is nobody who says something about some ones English in this newsgroup
or does not answer a question because of that

Cor
 
Back
Top