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. datagridview combobox column default value

datagridview combobox column default value

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

    I want to supply the user a combobox in a cell ("called Warehouse"- I add programatically to a datagridview) so they can select from the options. I want this datagridviewcombobox column to display the default value and if the use doesn't select a different value and then clicks save it saves to the database this default value. If they change selections and save it must save the selected value. Please Help ;)

    M 1 Reply Last reply
    0
    • M Mr Oizo

      I want to supply the user a combobox in a cell ("called Warehouse"- I add programatically to a datagridview) so they can select from the options. I want this datagridviewcombobox column to display the default value and if the use doesn't select a different value and then clicks save it saves to the database this default value. If they change selections and save it must save the selected value. Please Help ;)

      M Offline
      M Offline
      Mohammad Al Hoss
      wrote on last edited by
      #2

      Hi Convert the column you want to plcae the dropdown in to template column and place the dropdown in the item template and edit item template and give the dropdown the selected value u want to the dropdown note that this way works for VS 2005. if any problems mail me back

      Mohammad Al Hoss

      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