1
Answer

dropdownlist

Photo of Hrvoje

Hrvoje

15y
4.1k
1

I'm using this code to sort values in dropdownlist :
DropDownList1.DataSource = DropDownList1.Items.Cast<
ListItem>()
.OrderBy(o => o.Value).ToList();
ddlApoeni.DataBind();
the problem is that result is descending order, but i want ascending ?

Answers (1)