Ver Mensaje Individual
  #5 (permalink)  
Antiguo 02/04/2007, 15:41
Avatar de jhonwilliams
jhonwilliams
 
Fecha de Ingreso: marzo-2004
Ubicación: Copacabana - Colombia
Mensajes: 1.484
Antigüedad: 20 años, 2 meses
Puntos: 76
Re: Recorrer ListBox

RootK gracias por tu ayuda el codigo que acabas de poner no lo revise, entre para decirte que el code quedo asi:

Código:
string LotesPoy = "";
            if (lstLotesPOY.SelectedItems.Count > 0)
            {
                LotesPoy = "('";
                foreach (DataRowView r in lstLotesPOY.SelectedItems)
                {
                    LotesPoy = LotesPoy + r.Row[0].ToString().Substring(0, 3) + "', '";
                }
                LotesPoy = LotesPoy.Substring(0, LotesPoy.Length - 3) + ")";
            }
Nuevamente muchas gracias por tu ayuda.

Saludos
__________________
Si mi respuesta te ha ayudado, agradezco que me regales unos puntos de Karma XD.

"Una mujer sería encantadora si uno pudiera caer en sus brazos sin caer en sus manos." (Ambrose Bierce)