bindingsource doesn't save some fields

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashukite
    New Member
    • Jan 2010
    • 14

    bindingsource doesn't save some fields

    I have an invoice form bind to a bindingsource and bindingnavigato r. I use the bindingnavigato r to add and save records. But I can's save data from an item combobox and total text box. The item combobox's datasource is set from the item table. It's value member is set to item id and its display member to item name. but when i hit save, the data for the item value of the invoice table is not saved.

    The total text box is also a calculated value from quantity and unit price text box. at the text_change event of both unit price and quantity text box i have this code total.text = quantity.text * unitprice.text The data from the total text box is not saved also. What could be the problem with this two fields. I checked their data binding property but it is exactly the same as the others. plz help me!
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    How are you saving your data?
    Could you please post the code responsible for saving your invoice so that we can see why you can't save the information?

    -Frinny

    Comment

    • ashukite
      New Member
      • Jan 2010
      • 14

      #3
      i selected the invice table from the dataset and set it to the detail view and changed the item column control to combobox instead of text box. then set its datasource, displaymember and value member. then i dragged it to the invoice form. then i used the bindingnavigato r's save button to save records. other values from other textboxes are saved except for the item column and total column.

      Comment

      Working...