Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 21st, 2006, 04:03 PM
Authorized User
 
Join Date: Dec 2006
Location: Tucson, AZ, USA.
Posts: 43
Thanks: 4
Thanked 0 Times in 0 Posts
Send a message via MSN to Yasho
Default Populating list view columns

I am using this command to populate listview colums
 Try
            With DsRentMovies1
                   Try
            With DsRentMovies1
                lvwRental.Items.Add(.tblInventory(0).Number)
                lvwRental.Items.Add(.tblInventory(0).Description)
                lvwRental.Items.Add(Today)
                lvwRental.Items.Add(.tblInventory(0).QuantityonHan d)

            End With
all the values are going in first column in different row
Need help so i can put them in same row but different columns

yvk
__________________
yvk
 
Old December 21st, 2006, 05:29 PM
Authorized User
 
Join Date: Dec 2006
Location: Tucson, AZ, USA.
Posts: 43
Thanks: 4
Thanked 0 Times in 0 Posts
Send a message via MSN to Yasho
Default

I did it the correct code is
 With lvwRental
                    Dim Item As ListViewItem

                    Item = New ListViewItem(txtEquipID.Text)
                    Item.SubItems.Add(Dsxxxxx1.tblInventory(0).Descrip tion)
                    Item.SubItems.Add(Today)
                    Item.SubItems.Add(Dsxxxxxx1.tblInventory(0).Rental Rate)
                    lvwRental.Items.Add(Item)
                    txtEquipID.Text = ""

                End With

yvk




Similar Threads
Thread Thread Starter Forum Replies Last Post
Populating a list box VBAbeginner Access VBA 1 April 8th, 2008 09:24 AM
Help Grid View Drop Down List, view all jskinner123 ASP.NET 2.0 Basics 0 November 25th, 2007 06:25 PM
updating the table from the list view columns Yasho VB Databases Basics 2 July 31st, 2007 02:06 AM
populate details view or list view non empty rows iinfoque ASP.NET 2.0 Basics 0 March 11th, 2007 06:11 AM
populating a dropdown list within a datagrid in C# akshay144 General .NET 0 May 12th, 2006 04:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.