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. Datagrid

Datagrid

Scheduled Pinned Locked Moved Visual Basic
helpannouncement
2 Posts 2 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.
  • M Offline
    M Offline
    mcgann
    wrote on last edited by
    #1

    I have this datagrid on a search page. once the search is complete it populates the datagrid. What i want to do is retrieve the datagrids uniqueidentifier and then move to another page once the user has clicked update which will populate with the info from the selected datagrid row. Any help much appreciated. gfhg

    L 1 Reply Last reply
    0
    • M mcgann

      I have this datagrid on a search page. once the search is complete it populates the datagrid. What i want to do is retrieve the datagrids uniqueidentifier and then move to another page once the user has clicked update which will populate with the info from the selected datagrid row. Any help much appreciated. gfhg

      L Offline
      L Offline
      LeenaSo
      wrote on last edited by
      #2

      U can use the Datakeys property of the Datagrid to get the value of the unique field for the selected Row in the datagrid . Sub Update_Command(sender As Object, e As DataGridCommandEventArgs) .... uniq = Grid.DataKeys(e.Item.ItemIndex) .... End Sub

      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