Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Update Data in a Datagrid

Update Data in a Datagrid

Scheduled Pinned Locked Moved Visual Basic
helptutorialannouncement
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Larry White
    wrote on last edited by
    #1

    I'm just trying to add a listbox to a datagrid to allow the user to change selected fields. It should be easier than this, lol. I'm getting an error "Object reference not set to an instance of an object", when I select an actual value from my listbox within my datagrid. My code is as follows: Dim myDG As New DataGrid ... Private Sub listControl_SelectedValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles listControl.SelectedValueChanged myDG(hitTestGrid.Row, hitTestGrid.Column) = listControl.ToString End Sub ... If someone could point me to a good tutorial on editing data in datagrids, I'd appreciate it. Thanks, Larry:)

    LWhite

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups