public void CargarCombo() { dPLan.DataSource = GenerarCombo.getPlanes(); dPLan.DataValueField = "id_plan"; dPLan.DataTextField = "descripcion"; dPLan.DataBind(); }
public void CargarCombo() { cbPlanes.ValueMember = "id_plan"; cbPlanes.DisplayMember = "descripcion"; cbPlanes.DataSource = GenerarCombo.getPlanes(); }