Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/06/2011, 22:05
future89
 
Fecha de Ingreso: diciembre-2010
Mensajes: 106
Antigüedad: 13 años, 4 meses
Puntos: 10
Pregunta duda formato listview columm

usando un dataset, lleno el listview pero el precio queriacolocarle formato Ej: $12,550

pero lo unico que consigo es $###,##0 en la columna precio
¿ Como o en que lugar debe ir el formato ###,##0 ya que al quitarle esos
me queda $12550 pero me falta la coma...


Código vb:
Ver original
  1. Dim count = dataset.Tables(0).Rows.Count
  2.  
  3.         If count > 0 Then
  4.  
  5.             myConn.Open()
  6.  
  7.  
  8.  With Ltver.Items.Add(TbProducto.Text, "cod_libro")
  9.  .SubItems.Add(dataset.Tables(0).Rows(0).Item("nombre_libro"))
  10.  
  11.  .SubItems.Add("$" & Format((dataset.Tables(0).Rows(0).Item("precio")), "###,##0."))
  12.                
  13.  .SubItems.Add(txtCantidad.Text)
  14.                
  15.   importe = CInt(txtCantidad.Text) * CDbl((dataset.Tables(0).Rows(0).Item("precio")))
  16.  
  17.  .SubItems.Add("$" & Format(importe, "###,##0."))
  18.                
  19.             End With