Link to home
Start Free TrialLog in
Avatar of vjabhi
vjabhi

asked on

Listview problem

Hi all ,
I am using power builder 6.5.
i am trying to fill values in listview using DataWindow Control.
Listview1 is using Datawindow1 and listview2 is using datawindow2. Listview1 is getting populated while listview2 doesnt.
Listview1 also display some blank rows. How can i avoid them?
For listview1 i can scroll through data in datawindow1 also but for second listview2,  in Datawindow2 i am unable to scroll through. but i can see values getting populated.
what could be the reason. I am using same code to populate both the listview.
code is below............
for li_Count = 1 to dw_2.RowCount()
                         l_lvi.Label =      String(dw_2.GetItemNumber(li_Count, "bill_ref_no")) + "~t" + &
                                                  String(Date(dw_2.GetItemDateTime(li_Count, "ppdd_date"))) + "~t" + &
                                                  String(Date(dw_2.GetItemDateTime(li_Count, "closed_date"))) + "~t" + &
                                                  String(dw_2.GetItemNumber(li_Count, "new_charges")/100) + "~t" + &
                                                  String(dw_2.GetItemNumber(li_Count, "total_due")/100) + "~t" + &
                                                  String(dw_2.GetItemNumber(li_Count, "total_adj")/100) + "~t" + &
                                                  String(dw_2.GetItemNumber(li_Count, "total_paid")/100) + "~t" + &
                                                  String(dw_2.GetItemNumber(li_Count, "balance_due")/100)
                         
                         l_lvi.Data = dw_2.GetItemNumber(li_Count, "bill_ref_no")
                         lv_invoice.AddItem(l_lvi)
                    Next

Is there any other way to populate listview??
Is there any way to disply gridlines for Listview in Powerbuilder 6.5.

Thanks for your help.
Abhishek
ASKER CERTIFIED SOLUTION
Avatar of diasroshan
diasroshan
Flag of Kuwait image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vjabhi
vjabhi

ASKER

Hi,

I have changes.. actually have to do validation for all as there were some date fields also...
Can we display gridlines for listview??

i am using PB 6.5

Thanks a lot.
Abhishek