USUÁRIO:      SENHA:        SALVAR LOGIN ?    Adicione o VBWEB na sua lista de favoritos   Fale conosco 

 

  Fórum

  Visual Basic
Voltar
Autor Assunto:  Linha de sub-total dentro do LISTVIEW
Joaquim
não registrado
Postada em 01/04/2006 15:27 hs   
Prezado amigo,
Me ajudem por favor...
 
Pois quero criar uma linha adicional dentro do listview, conforme o exemplo  abaixo:
 
Exemplo
--------------------
Dim LVi As ListItem
LV.ListItems.Clear
For I = 1 To 20
   Set LVi = LV.ListItems.Add(, , "teste1")
   LVi.SubItems(1) = "teste1"
   LVi.SubItems(2) = 1
   if I=10 then
      Set LVi = LV.ListItems.Add(, , "Sub-Total")
   endif
Next
Set LVi = LV.ListItems.Add(, , "Total Geral")
 
Conclusão
---------------
Se eu colocar uma pausa qualquer, msgbox (""), etc... ele mostra o sub-total, conforme I=10, mas quando mostra o total geral, isto é, após o next, ele apagar ou sobrepoem o subtotal (I=10); como resolver este problema? como fixar o sub-total e total geral dentro do listview?
 
Obrigado.
 
Joaquim
 
 
     
ghost_jlp
Pontos: 2843 Pontos: 2843 Pontos: 2843 Pontos: 2843
SÃO PAULO
SP - BRASIL
Postada em 01/04/2006 16:54 hs            
Amigo, não estou entendendo... usando o seu exemplo vai mostrar tanto o sub-total qto o total geral. O q vc chama de "fixar" o sub-total e o total geral??
abaixo segue como vai ficar usando o seu exemplo:
 
 
********************************************
teste1          teste1          1
teste1          teste1          1
teste1          teste1          1
teste1          teste1          1
teste1          teste1          1
teste1          teste1          1
teste1          teste1          1
teste1          teste1          1
teste1          teste1          1
teste1          teste1          1
Sub-Total
teste1          teste1          1
teste1          teste1          1
teste1          teste1          1
teste1          teste1          1
teste1          teste1          1
teste1          teste1          1
teste1          teste1          1
teste1          teste1          1
teste1          teste1          1
teste1          teste1          1
Total Geral
****************************************************
 
Então... pra vc como ficaria esta lista??
 
no aguardo...
 
obrigado
 
t+
     
Página(s): 1/1    


Seu Nome:

Seu eMail:

ALTERAR PARA MODO HTML
Mensagem:

[:)] = 
[:P] = 
[:(] = 
[;)] = 

HTML DESLIGADO

     
 VOLTAR

  



CyberWEB Network Ltda.    © Copyright 2000-2026   -   Todos os direitos reservados.
Powered by HostingZone - A melhor hospedagem para seu site
Topo da página