public void CargarCombo(Controles.datos.cmbLista combo, DataTable dt, string Value, string Text, string strPrimero) { DataRow drPrimer; drPrimer = dt.NewRow(); drPrimer[Value] = 0; drPrimer[Text] = strPrimero; dt.Rows.InsertAt(drPrimer, 0); combo.DataSource = dt; combo.ValueMember = Value; combo.DisplayMember = Text; }
public void CargarCombo(Controles.datos.cmbLista combo, DataTable dt, string Value, string Text) { combo.DataSource = dt; combo.ValueMember = Value; combo.DisplayMember = Text; }