Listbox Columnheads Text

T

Taylor79

i see you can turn on columnheaders by clicking true or false in the
properties or by calling it by list1.columnheads = true

but my question is how do you create/Add Text to the headers ?
and i do know you can use listview to do this but i do not want to go that
way.
 
J

JB

Taylor79 said:
i see you can turn on columnheaders by clicking true or false in the
properties or by calling it by list1.columnheads = true

but my question is how do you create/Add Text to the headers ?
and i do know you can use listview to do this but i do not want to go that
way.
Hi Taylor,
This has worked for me in VB.

With grdName
..FixedRows = 1
..FixedCols = 0
..Cols = 3
..Rows = 1
End With

columnheadings = " RoadName |>THE_DATE |< AVERAGE "
grdreport.FormatString = columnheadings
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top