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
495
DropDownProvider default value
posted

Hello - 

I've got a drop down provider in a web grid.  I have populated the values of the drop down in the code behind on page_load so 0 = "", 1="red", 2="blue", 3="green".

 I am adding a new row to the grid via JavaScript which works fine, but the display in the cell with the drop down is 0 - no matter what I put in there - whether the default value is 0, "" or null.  I can select a value after that, and the list is correct and it retains the new value, but was I really need is that drop down to display the correct text associated with the value its set to.  

What am I missing?

thanks,

Jeff