Results 1 to 2 of 2

Thread: Setting values in a new datarow

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Houston, TX
    Posts
    342

    Setting values in a new datarow

    I am using a bound datagrid, and I need to set some values in a new row when the user clicks a button. How do I get the handle (or index) of the new row so I can set the values?

    Thanks!

  2. #2
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322
    Dim objNewRow as DataRow
    objNewRow = objTable.NewRow()

    objNewRow("Author") = "William T"
    objNewRow("Title") = "Develop Distributed Applications with Notepad"

    objTable.Rows.Add(objNewRow)

    hth
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

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