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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. DataGrid and Dropdown column in it

DataGrid and Dropdown column in it

Scheduled Pinned Locked Moved ASP.NET
cssdatabasehelptutorialannouncement
2 Posts 2 Posters 1 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.
  • D Offline
    D Offline
    Dotnetdeveloper06
    wrote on last edited by
    #1

    Hi to all I have Datagrid with Dropdown column. The Datasource to Dropdown is different from the datasource to fill the Datagrid. So depending upon the selecteditem in the dropdown i need to insert /delete the values in the dropdown datasouce table.[For Example if yes is selected in dropdown then i have to insert row in dropdown datasource table taking datakeyfeild of the datagrid and Selectedvalue index.In the same way if it is selected no, i have to delete. or if dropdown list value is changed to somthing then i need to edit value in datasource table of dropdown.] My doubt is where can put my code for insert,delete or update .I mean is it in Grid_ItemDatabound or SelectedIndexchanged . i m confused . Can anyone help me please. Thank u very much Dotnetceveloper

    M 1 Reply Last reply
    0
    • D Dotnetdeveloper06

      Hi to all I have Datagrid with Dropdown column. The Datasource to Dropdown is different from the datasource to fill the Datagrid. So depending upon the selecteditem in the dropdown i need to insert /delete the values in the dropdown datasouce table.[For Example if yes is selected in dropdown then i have to insert row in dropdown datasource table taking datakeyfeild of the datagrid and Selectedvalue index.In the same way if it is selected no, i have to delete. or if dropdown list value is changed to somthing then i need to edit value in datasource table of dropdown.] My doubt is where can put my code for insert,delete or update .I mean is it in Grid_ItemDatabound or SelectedIndexchanged . i m confused . Can anyone help me please. Thank u very much Dotnetceveloper

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, You can find lots of examples of using the datagrid with the dropdownlist control from the site http://www.datagridgirl.com/Articles.aspx[^]

      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