vb.net - DataTable and bound winform textbox control? -


i have winform textbox controls bound dataset datatable. this:

me.customernametextbox.databindings.add("text", mydataset, "tblcustomer.customername") me.customercodetextbox.databindings.add("text", mydataset, "tblcustomer.customercode") me.billaddresstextbox.databindings.add("text", mydataset, "tblcustomer.bill_address") me.billcitytextbox.databindings.add("text", mydataset, "tblcustomer.bill_city") 

when enter values in textboxes , press button (=leave edit) find table (mydataset.table(0)) contains values entered besides last control/textbox in.

what reason/solution?

are tabbing out of textbox before clicking button? without investigating, suspecting tht yoou either need require user exit last textbox before clicking buttin, (isuspect) triggers update of dataset.

if click button after completing entry in last text box, instead of exiting control using tab key, mouse click button while control still has focus, believe dataset not updating.

i wrong, though. check . . .


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -