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. Web Development
  3. ASP.NET
  4. dropdown list

dropdown list

Scheduled Pinned Locked Moved ASP.NET
announcement
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.
  • P Offline
    P Offline
    picazo
    wrote on last edited by
    #1

    Hi everyone, I am working with a gridview (actually a radgrid from telerik) control, and am having some trouble. I would like to use a dropdown box instead of a simple textbox for some of the columns when in edit/insert mode. The thing is that I would like to make the substitution of controls in code, not using template field. Basically, I was wondering if I could catch an event (and what event), and change the control before it was rendered, the somehow retrieve the combobox selection and update the column value with it. The reason I need to do it this way is because the control is supposed to be generalized for any dataset (using stored procs), so I can't 'hardcode' the template. When putting a row in edit mode, I will need to check each column to determine what control (textbox, dropdown, ...) to use. This info will be provided by the dataset. Thanks in advanced, and please ask for clarification if you need it.

    ----------------- Genaro

    C 1 Reply Last reply
    0
    • P picazo

      Hi everyone, I am working with a gridview (actually a radgrid from telerik) control, and am having some trouble. I would like to use a dropdown box instead of a simple textbox for some of the columns when in edit/insert mode. The thing is that I would like to make the substitution of controls in code, not using template field. Basically, I was wondering if I could catch an event (and what event), and change the control before it was rendered, the somehow retrieve the combobox selection and update the column value with it. The reason I need to do it this way is because the control is supposed to be generalized for any dataset (using stored procs), so I can't 'hardcode' the template. When putting a row in edit mode, I will need to check each column to determine what control (textbox, dropdown, ...) to use. This info will be provided by the dataset. Thanks in advanced, and please ask for clarification if you need it.

      ----------------- Genaro

      C Offline
      C Offline
      CodeGal 0
      wrote on last edited by
      #2

      Hi Genaro, Just wanted to check if somebody was able to help you or in case you cracked your problem yourself !

      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