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. disabling an item in combobox

disabling an item in combobox

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorialquestion
6 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
    Prakash_Mishra
    wrote on last edited by
    #1

    Hi all In my asp.net project in a form i want to disable a particular item in a combobox Like if this is condition make the 3rd item in the combobox disable or hiden. How to do it?? Thanks & Regards Prakash

    Prakash Mishra(Banglore,India)

    I 1 Reply Last reply
    0
    • P Prakash_Mishra

      Hi all In my asp.net project in a form i want to disable a particular item in a combobox Like if this is condition make the 3rd item in the combobox disable or hiden. How to do it?? Thanks & Regards Prakash

      Prakash Mishra(Banglore,India)

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      try this code ddl.Items[3].Enabled = False; Best Regard Pathan

      ---------------------------------------------------

      P 1 Reply Last reply
      0
      • I Imran Khan Pathan

        try this code ddl.Items[3].Enabled = False; Best Regard Pathan

        ---------------------------------------------------

        P Offline
        P Offline
        Prakash_Mishra
        wrote on last edited by
        #3

        Hi imran i tried that before but its not working i think the syntax is not correct i am working with VB as the lang.

        Prakash Mishra(Banglore,India)

        I 1 Reply Last reply
        0
        • P Prakash_Mishra

          Hi imran i tried that before but its not working i think the syntax is not correct i am working with VB as the lang.

          Prakash Mishra(Banglore,India)

          I Offline
          I Offline
          Imran Khan Pathan
          wrote on last edited by
          #4

          so try this code ddl.Items(0).Enabled=false Best Regard Pathan

          ---------------------------------------------------

          P 1 Reply Last reply
          0
          • I Imran Khan Pathan

            so try this code ddl.Items(0).Enabled=false Best Regard Pathan

            ---------------------------------------------------

            P Offline
            P Offline
            Prakash_Mishra
            wrote on last edited by
            #5

            DPOption.Items(3). After this there is no enabled option.

            Prakash Mishra(Banglore,India)

            P 1 Reply Last reply
            0
            • P Prakash_Mishra

              DPOption.Items(3). After this there is no enabled option.

              Prakash Mishra(Banglore,India)

              P Offline
              P Offline
              Prakash_Mishra
              wrote on last edited by
              #6

              DPOption.Items.RemoveAt(3) this worked thanks for the help Regards

              Prakash Mishra(Banglore,India)

              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