Results 1 to 3 of 3

Thread: [RESOLVED] how to check if current row is new row in datatable

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    403

    Resolved [RESOLVED] how to check if current row is new row in datatable

    hi all,

    how to check if current row is new row in datatable?

    i'm trying to have some fields non-updataeble but can be inserted when it is a new record.

    thanks.

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

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: how to check if current row is new row in datatable

    Hey,

    You should be able to use the RowState property of the DataRow:

    http://msdn.microsoft.com/en-us/libr....rowstate.aspx

    Hope that helps!!

    Gary

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    403

    Re: how to check if current row is new row in datatable

    thanks. very helpful.

    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