trialer
Well-known member
- Joined
- Oct 4, 2010
- Messages
- 64
- Programming Experience
- 1-3
VB.NET:
With lvList
.Clear()
[COLOR="#008000"] [I]'loading data from database[/I][/COLOR]
.View = View.Details
.FullRowSelect = True
.GridLines = True
.Columns.Add("Customer ID", 50)
.Columns.Add("Name", 100)
.Columns.Add("Address", 100)
.Columns.Add("Existing Balance", 50)
FillListView(lvlist, GetData(sSql))
.Columns.Add("Remaining Balance")
[I] 'calculation[/I]
calc = pbal
i1 = 1000
calc = pbal + i1
[I][COLOR="#008000"] 'adding to listview[/COLOR][/I]
Dim lst As New ListViewItem(cid)
lst.SubItems.Add("")
lst.SubItems.Add("")
lst.SubItems.Add("")
lst.SubItems.Add(calc.ToString)
lvlist.Items.Add(lst)
End With
how do i align the the total with its corresponding customer ID,
please help me how to add 1000 to each prevbal and put it in the column remainingbal
thanks in advance!
Last edited: