Re: Trying to Bind DropDownList to enum within a FormView
Thanks for your help Candice. I was able to use this, along with realizing that I had to update the SelectIndex of the DropDown List in the code-behind (I was trying to do it right on the page). --Eric
View ArticleRe: Trying to Bind DropDownList to enum within a FormView
Hi ericjvanpyrz,Based on your last post, it seems you have solved original issue. If you want to convert enum to index, you could write a function to convert enum to int32 array.I created the sample...
View ArticleRe: Trying to Bind DropDownList to enum within a FormView
Hi Candice, It looks like the value coming from the Bind("ListingStatus") is an integer (corresponding to the enum value, which I expect), but when I am populating the DropDown list...
View ArticleRe: Trying to Bind DropDownList to enum within a FormView
Hi ericjvanpyrz,The value coming from <%# Bind("ListingStatus") %>, which is passed to the SelectedValue property, does not match an item in its collection. Most likely causes:1.DropDownList has...
View ArticleTrying to Bind DropDownList to enum within a FormView
I've looked around this and SO, and was able to find a way (as far as I can tell) to bind the drop-down to the enum, however, I can't seem to get it to bind before then taking a value from the...
View Article