![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
14/01/2010, 16:13
|
![Avatar de frankjoel86](http://static.forosdelweb.com/customavatars/avatar270596_1.gif) | | | Fecha de Ingreso: noviembre-2008 Ubicación: Ica
Mensajes: 295
Antigüedad: 16 años, 3 meses Puntos: 0 | |
Respuesta: C# & sql Saludos nuevamente gentita, estoy llenando un combo en c# pero no puedo lograrlo. adjunto el codigo.
mycon = new SqlConnection(cn);
mycon.Open();
daa = SqlDataAdapter("select *from almacen", mycon);
daa.Fill(dta);
this.cboalmacen.Items.Add("-- Almacen --");
for(i=0; i=dta.Rows.Count; i++)
{
DataRow dr = dta.Rows(i);
cboalmacen.Items.Add(dr("codAlmacen") & " - " & dr("nombre"));
}
mycon.Close;
this.cboalmacen.SelectedIndex=0;
Agradesco antemano la ayuda. |