Jeff Garoutte

c# .net and anything else that happens across my desk

The DropDownList, the DataBind and the Missing Value

I sat there and blinked at the ArgumentOutOfRangeException.  It was just a DropDownList that had the selected value data bound inside a FormView.  How can we prevent this from happening?  I did a little digging on how to handle this odd "spot" and I found this article on a subclass of the DropDownList control.  It is an interesting article, and I almost went this route but it has a draw back I did not like.  The articles solution is to add the missing value to the DropDown... [More]