Results 1 to 2 of 2

Thread: [02/03] addnew, edit and delete

Threaded View

  1. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    403

    Re: [02/03] addnew, edit and delete

    i figured out why i get the concurrency error. it seems that when i do this code

    vb Code:
    1. myDatatable.DefaultView.AddNew()

    i stay on the same rowindex after I click the AddNew which means when i try to clear the fields, it edits the currentrecord (which is an existing record) and not add the new record.

    now to simplify the problem, i need to go the rowindex of the newly added row and make the changes there... unfortunately, im having a bit of a problem in doing this. using this code
    vb Code:
    1. Me.BindContext(myDatatable).Postion = myDatatable.DefaultView.Count
    does me no good.

    any other suggestions please... thanks.
    Last edited by adshocker; Jul 29th, 2007 at 09:13 AM.

    VB Version: Microsoft Visual Studio 2008 Professional Edition
    .NET Version: Microsoft .NET Framework Version 3.5
    OS: Windows XP SP3

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