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. Gridview with dropdown

Gridview with dropdown

Scheduled Pinned Locked Moved ASP.NET
databasehelp
3 Posts 3 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.
  • Y Offline
    Y Offline
    yardly
    wrote on last edited by
    #1

    i have loaded values in my dropdown list box... if i select the same value in to my gridview it should not allow tha same "PARTNUMBAR AND DESCRIPTION " from my database... i am having same discription name with different part number.... Wt i need is, It should not aloow the same part number and decsription inside my gridview textbox.. help me....

    M T 2 Replies Last reply
    0
    • Y yardly

      i have loaded values in my dropdown list box... if i select the same value in to my gridview it should not allow tha same "PARTNUMBAR AND DESCRIPTION " from my database... i am having same discription name with different part number.... Wt i need is, It should not aloow the same part number and decsription inside my gridview textbox.. help me....

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      The dropdown will be shown what you bind. If you don't want to allow this, you should filter in SQL statment.

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      1 Reply Last reply
      0
      • Y yardly

        i have loaded values in my dropdown list box... if i select the same value in to my gridview it should not allow tha same "PARTNUMBAR AND DESCRIPTION " from my database... i am having same discription name with different part number.... Wt i need is, It should not aloow the same part number and decsription inside my gridview textbox.. help me....

        T Offline
        T Offline
        Thats Aragon
        wrote on last edited by
        #3

        Hi, You can filter your DropDownList data at SQL statement and also you can do it from your code behind. e.g. DrpName.Items.Remove(DrpName.Items[index]) Hope this will help you. Regards.

        Keep Smiling :)

        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