MBHEY131
asked on
data binding back to a textbox
Here is my code:
frmShopHandMain.txtLaborRa te01.DataB indings.Ad d("Text", frmShopHandMain.Database1D ataSet.Tab les["Payco de"], "PayCodeRate")
I am binding at design time the text property of the above textbox and have to stop binding for various reasons and I can't seem to figure this out. Everything Is working fine at design time and field is getting updated properly.
frmShopHandMain.txtLaborRa te01 = mytextbox
"Text" = Property of the textbox I want to bind to
frmShopHandMain.Database1D ataSet = DataSet involved
"Paycode" = The table in the database
"PayCodeRate" = Member of the table go get the data from
Could anyone help me?
The system just keeps Underlining the code in the designer.
frmShopHandMain.txtLaborRa
I am binding at design time the text property of the above textbox and have to stop binding for various reasons and I can't seem to figure this out. Everything Is working fine at design time and field is getting updated properly.
frmShopHandMain.txtLaborRa
"Text" = Property of the textbox I want to bind to
frmShopHandMain.Database1D
"Paycode" = The table in the database
"PayCodeRate" = Member of the table go get the data from
Could anyone help me?
The system just keeps Underlining the code in the designer.
ASKER
vs2012 vb.net
ASKER
frmShopHandMain.txtLaborRa te01.DataB indings.Ad d(New System.Windows.Forms.Bindi ng("Text", frmShopHandMain.Database1D ataSet, "Paycode.PayCodeRate"))
I'm getting close, but no joy on the binding problem and it's getting very frustrating
The error I'm getting on the above code now is that the system cannot bind the "PaycodeRate" Column to the Textbox.
Does anybody have a suggestion?
I'm getting close, but no joy on the binding problem and it's getting very frustrating
The error I'm getting on the above code now is that the system cannot bind the "PaycodeRate" Column to the Textbox.
Does anybody have a suggestion?
ASKER
Now the "PAYCODERATE" field the a (numeric 18,2) in the query setup and the destination is a textbox, could that be a problem and if so, how can I fix it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I WAS not aware of DIRECTCAST
ASKER