Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
Setting ValueField Programaticly
posted

WebDropDown fails to accept the ValueField property if it has been set programaticly.

      WebDropDown1.ValueField = "Keys"

Although when seted in the Properties Pane it works normally. Is this a bug ?

Parents
No Data
Reply
  • 24671
    posted

    Hi,

    In which event handler do you re-set the ValueField? I suggest one possible solution would be to call DataBind() on the WebDropDown, after ValueField has been set programatically. I am assuming that in your scenario what happens is that you set it to a new value, but the list of items remains bound to the previous field ? If there is some other sort of error or exception, please let us know and we will handle this as soon as possible. 

    I hope this helps. Thanks,

    Angel 

Children