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. General Programming
  3. C#
  4. Can i disabled the entries in ComboBox in window application

Can i disabled the entries in ComboBox in window application

Scheduled Pinned Locked Moved C#
question
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.
  • A Offline
    A Offline
    ankushmn
    wrote on last edited by
    #1

    Hello, Can i disabled the entries in ComboBox in window application ?? What i want is as follows I have two ComboBox on my page having same entries in it. If i Select one of the value from first ComboBox then that value or entry get automatically diable in second ComboBox and vice versa. Thanx in Adv.

    M 1 Reply Last reply
    0
    • A ankushmn

      Hello, Can i disabled the entries in ComboBox in window application ?? What i want is as follows I have two ComboBox on my page having same entries in it. If i Select one of the value from first ComboBox then that value or entry get automatically diable in second ComboBox and vice versa. Thanx in Adv.

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

      hi ankushmn! :) I suggest that you just remove it from the list instead of disabling it. I also recommend to use a DataView as your DataSource instead of using Items.Add when populating the combobox. you can use the RowFilter of the combobox to remove the item you want and put this handling on the SelectedIndexChanged event handler of your two comboboxes. hope that helps! :) microsoc :cool:

      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