Hi !

I'm trying to bind a numericupdown control to a decimal field,the problem is 
when I add a new value

Private Sub cmb_Ad_Click(ByVal sender As System.Object, ByVal e As 
System.EventArgs)  Handles cmb_Ad.Click
        bSource_MF.AddNew()
        nupd_Cant.Value = Convert.ToDecimal("1.00")
 End Sub

in form Load :


 Dim wFB As New FbDataAdapter(cmd)
        wdsMF = New DataSet
        wFB.Fill(wdsMF)
  .................................................................    
bSource_MF.DataSource = wdsMF.Tables(0)
(bindingsource)
 dgw_MF.DataSource = bSource_MF     (datagridview)
.......................

    nupd_Cant.DataBindings.Clear()
    nupd_Cant.DataBindings.Add("value", bSource_MF, "cant")


Using     nupd_Cant.DataBindings.Add("value" , bSource_MF, "cant"),
  when I add a new value, numericupdown control shows a correct value.
 Grid shows the new value over the first and after changes are 
saved,bindingnavigator 
 navigate only over first 4 records even it shows {record 4 of 15},the new 
record added is not shown.


Using     nupd_Cant.DataBindings.AddbSource_MF("text", "cant"),


When I add a new value, numericupdown control shows empty value,
 After it is saved,bindingnavigator  works correct.
 
Grid shows the new value at last position,not all values are shown.If I close 
the form and reopen, all values of last added record are shown.




To save changes I use : 
      .......................................
       ( call stored procedure)
          bSource_MF.EndEdit()


Many thanks !               
                       



  

 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to