jeudi 28 mai 2015

Checkboxes won't update in DGV when save is clicked

For some strange reason everytime I try to update/add new row into the Data Grid View the checkboxes don't seem to be affected does anyone know why?

PS. I can edit /add new data with no issues, just the 2 checkbox fields?? I have tried to set them to textbox fields and tried entering "0" or "1" with no luck I have checked to make sure they are not read only. Also in the standard details view(on another form) the checkboxes seem to work fine. Is there something fundamental I'm missing with checkboxes?

    Public Class P3

Private Sub PurchasingBindingNavigatorSaveItem_Click(sender As Object, e As EventArgs) Handles PurchasingBindingNavigatorSaveItem.Click
    Me.Validate()
    Me.PurchasingBindingSource.EndEdit()
    Me.TableAdapterManager.UpdateAll(Me.JOBDataSet)

End Sub

Private Sub P3_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    'TODO: This line of code loads data into the 'JOBDataSet.Purchasing' table. You can move, or remove it, as needed.
    Me.PurchasingTableAdapter.Fill(Me.JOBDataSet.Purchasing)

End Sub

End Class

TIA




Aucun commentaire:

Enregistrer un commentaire