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. databinding issue in dropdownlist

databinding issue in dropdownlist

Scheduled Pinned Locked Moved ASP.NET
helpdatabase
3 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
    padvit
    wrote on last edited by
    #1

    I have two datasets one is used to fill the dropdownlist values. Second one points to the value to be selected in dropdownlist. Datatextfield (string), value field(string) are set at runtime in pageload databinding is taking place in pageload only once when page loaded for firsttime. The Issue is Iam not able to select the value according to second dataset record. The problem is since these are usercontrols many pagebinding is taking place and selectvalue, selected index everything is failing at some point can anyone help in this Padvit

    V 1 Reply Last reply
    0
    • P padvit

      I have two datasets one is used to fill the dropdownlist values. Second one points to the value to be selected in dropdownlist. Datatextfield (string), value field(string) are set at runtime in pageload databinding is taking place in pageload only once when page loaded for firsttime. The Issue is Iam not able to select the value according to second dataset record. The problem is since these are usercontrols many pagebinding is taking place and selectvalue, selected index everything is failing at some point can anyone help in this Padvit

      V Offline
      V Offline
      V 0
      wrote on last edited by
      #2

      if you don't reload your ddl's at every reload set EnableViewState to true. if you do reload them right before you do, set the selectindex in an integer and set it back after reload. You can also try to bind your grid in the Pre_render eg. Then you're UserControls are completely loaded. PS: You're post wasn't very clear at what your gaining at so if I misunderstood, my apologies. Good luck. No hurries, no worries.

      P 1 Reply Last reply
      0
      • V V 0

        if you don't reload your ddl's at every reload set EnableViewState to true. if you do reload them right before you do, set the selectindex in an integer and set it back after reload. You can also try to bind your grid in the Pre_render eg. Then you're UserControls are completely loaded. PS: You're post wasn't very clear at what your gaining at so if I misunderstood, my apologies. Good luck. No hurries, no worries.

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

        thank you very much for reply. Iam trying in different way. Padvit

        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