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. Set Value On Column of GridView

Set Value On Column of GridView

Scheduled Pinned Locked Moved Visual Basic
questionhelp
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
    minhnguyen08
    wrote on last edited by
    #1

    How can i set value for Column1 when value of column2 changed on a row?:confused:. I need your help, Plz help me. Thank you very much.

    L 1 Reply Last reply
    0
    • M minhnguyen08

      How can i set value for Column1 when value of column2 changed on a row?:confused:. I need your help, Plz help me. Thank you very much.

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

      you need to utilize the after_Update event from the datagrid. The arguments taht are passed include the row and column as ordinals. Then all you have to do is access the information in column 2, manipulate it and change the info in column1. One gotcha to watch out for is that you need to specify which columns you want the event to do work on. You can do this by adding a select...case liek this select e.datagridcolumn (not sure if this is the actual name of the parameter passed) case 2 Make changes to column 1 else do nothing end select

      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