Hi all,
I change data on datagridview then I save it, appear an error message:
Quote:
Missing the DataColumn 'ColumnID' in the DataTable 'project' for the SourceColumn 'ColumnID'.
|
This is my code:
Code:
Private Sub saveBNavigator_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles saveBNavigator.Click
Me.Validate()
Me.ProjectDataBindingSource.EndEdit()
If ds.HasChanges Then
Dim cmb As New SqlCommandBuilder(Me.ProjectDataAdapter)
Try
Me.ds.Tables("project").GetChanges()
ProjectDataAdapter.Update(ds.Tables("Project"))
Catch ex As Exception
MessageBox.Show(ex.Message, "Exception", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End If
End Sub
I'm using
VB.net 2005.
Can anybody help me?
Thanks in advance.
SLKT