Ya how to add data in row by row fashion in listview . My frontend version is vb6
[CODE=vb]Dim lsItem As ListItem
<for loop>
' am not sure about the AddItem perameters because i am gussing.
set lsItem = lvListViewName. AddItem(intInde xValue, Col0ValueToShow )
lsItem.SubItem( 1) = Col1ValueToShow
lsItem.SubItem( 1) = Col2ValueToShow
lsItem.SubItem( 1) = Col3ValueToShow
<next>[/CODE]
if you get the concept you can do.
I have three columns. How to add the data's row by row fashion.
Thanks in advance
If you've loaded data into Recordset, so, do like this
[CODE=VB]
Dim Rs as Recordset
Dim lvItem as ListItem
'load data into Rs
While Not Rs.EOF
Set lvItem = ListView1.ListI tems.Add(,,rs!f ield1)
lvItem.SubItem( 1) = rs!field2
lvItem.SubItem( 3) = rs!field3
Rs.MoveNext
Wend
[/CODE]
Remember, add enought column for the Listview at design time.
Comment