|
-
Mar 15th, 2001, 11:09 AM
#1
Thread Starter
Lively Member
Hi,
I am using a listview to display data from a db, however i want to insert different fields into different column headings in the listview (using the report view), could any1 help me in showing me the code to add text to different columns?
Kieran Smith
'Computing' A Level Student
[email protected]
Visit my Home Page
Visual C++ 6.0 Pro
Visual Basic 6.0 Ent
SQL, ADO, DAO
"Computers in the future may weigh no more than 1.5 tons."
-- Popular Mechanics, forecasting the relentless march of science, 1949
-
Mar 15th, 2001, 12:10 PM
#2
Hyperactive Member
lstView.ColumnHeaders(Index).Text =
-
Mar 15th, 2001, 12:15 PM
#3
Thread Starter
Lively Member
no, that would rename the title of the column report, i want to add an item wich says test in say 3 columns! i dont want to change the name of the column header.
Kieran Smith
'Computing' A Level Student
[email protected]
Visit my Home Page
Visual C++ 6.0 Pro
Visual Basic 6.0 Ent
SQL, ADO, DAO
"Computers in the future may weigh no more than 1.5 tons."
-- Popular Mechanics, forecasting the relentless march of science, 1949
-
Mar 15th, 2001, 02:27 PM
#4
Code:
Dim colData As ListItem
Set colData = Listview1.ListItems.Add (,,"Title")
colData.SubItems(1).Text = "hello"
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|