Results 1 to 7 of 7

Thread: [RESOLVED] [2005] Datagridview update error

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2007
    Posts
    362

    Resolved [RESOLVED] [2005] Datagridview update error

    I am using the following update command in the button click event:

    Code:
     ElseIf TypeOf Me.ActiveMdiChild Is WkPayment Then
                Dim ChildForm As WkPayment = DirectCast(Me.ActiveMdiChild, WkPayment)
    
                ChildForm.Validate()
                ChildForm.EMPDRAWBindingSource.EndEdit()
                ChildForm.EMPDRAWTableAdapter.Update(ChildForm.EmPaY.EMPDRAW)
                MsgBox("        Update successful       ")
    and i am getting the following error:

    Update requires a valid UpdateCommand when passed DataRow collection with modified rows.
    What could possibly be wrong ?
    Last edited by LuxCoder; Sep 24th, 2007 at 06:17 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width