For i = 0 To rs1.RowCount-1
rs1.Position = i
IDevLetto=rs1.GetString("IDevento") & " - " & rs1.GetString("Titolo") & CRLF & "----------------------------------------------"
If (IDevLetto<>IDPreced And i<>0) Or (i=rs1.RowCount-1) Then
STR=IDPreced & CRLF & STR
CustomListView1.AddTextItem (STR,"")
STR =""
End If
IDPreced=IDevLetto
STR= IIf(STR<>"",STR & CRLF,"") & rs1.GetString("IDOperatoreTipo") & " - " & rs1.GetString("Cognome") & " " & rs1.GetString("Nome")
Next