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. How to show a given text value in combo box if it is in collection of combo box

How to show a given text value in combo box if it is in collection of combo box

Scheduled Pinned Locked Moved ASP.NET
tutorial
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.
  • H Offline
    H Offline
    Hemant Garg
    wrote on last edited by
    #1

    Hello To Every One, How to show a given text value in combo box if it is in collection of combo box.. Thank You..

    Z 1 Reply Last reply
    0
    • H Hemant Garg

      Hello To Every One, How to show a given text value in combo box if it is in collection of combo box.. Thank You..

      Z Offline
      Z Offline
      Zafar Iqbal
      wrote on last edited by
      #2

      Hi, If this value is in text section of that combo then use following to find that item and set returned items Selected property to true. List item = .Items.FindByText("yourtext"); if (item != null) item.Selected = true; If that is in its value section then use following List item = .Items.FindByValue("yourvalue"); if (item != null) item.Selected = true; Hope this solves your issue.

      Zafar Iqbal

      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