예제 #1
0
        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;
        }
예제 #2
0
 public void CargarCombo(Controles.datos.cmbLista combo, DataTable dt, string Value, string Text)
 {
     combo.DataSource    = dt;
     combo.ValueMember   = Value;
     combo.DisplayMember = Text;
 }