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.GetItemDa teTime(li_ Count, "ppdd_date"))) + "~t" + &
String(Date(dw_2.GetItemDa teTime(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_Coun t, "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
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(
String(Date(dw_2.GetItemDa
String(Date(dw_2.GetItemDa
String(dw_2.GetItemNumber(
String(dw_2.GetItemNumber(
String(dw_2.GetItemNumber(
String(dw_2.GetItemNumber(
String(dw_2.GetItemNumber(
l_lvi.Data = dw_2.GetItemNumber(li_Coun
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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