protected void DataStructFile_DataBinding(object sender, System.EventArgs e) { Consulta c = new Consulta(); try { DropDownListASP.llenarDropDownList(c.consultarTipoValor(), "value", "text", ref this.ddlTipoValor); DropDownListASP.selectIndexByValue(ref this.ddlTipoValor, Convert.ToString(((System.Data.DataRowView)DataItem).Row.ItemArray[5])); } catch (Exception ex) { Logger.generarLogError(ex.Message, new System.Diagnostics.StackFrame(true), ex); } }