If I have a dropdownlist I know I can..
SelectedValue='<%#Bind("AgencyID")%>'
I want to do the same with a listbox but select multiple values. I was trying to use gridview.FindControl("listbox") but it always is null. Can someone guide me in the right direction? Thanks!
From stackoverflow
-
Problem solved... I just set the selected values when the listbox is being databound.
0 comments:
Post a Comment