I have a DropDownList control and I want to set the SelectedValue to the lowest value in the dropdownlist greater than 0
for example my control drpExample has the following values:
0
0.90
2
3.32
I want to use drpExample.SelectedValue = The lowest value greater than 0
The SelectedValue should then be 0.90
Is there a simple way to do this?
Thanks for looking!
Try this:
Where
ddlis your DropDownList control ID.