I need to set a particular item of my drop down list selected after data bind.
i´m trying :
this.DROP_DOWN.tems.FindByValue(mystring).selected = true;
it seems to be ok but the FindByValue Method never finds the item.
here is the code:
this.GetAgencias(this.ObjReserva.AgRetirada.Cidade,this.AGENCIA_RETIRADA,"R");
//this method Load the data from my database and bind to the drop down list
this.AGENCIA_RETIRADA.Items.FindByValue(this.ObjReserva.AgRetirada.LocCode).Selected = true;
and then make it selected.
can anyone help me??