Hello,
I have a Listview control which displays various data.
The default selected item is the first item.
(Is it always the first item?)
Here's a simple code:
The only clickable column is the first column.
In this case, the "Activity" column.
The problem here is the data in "Activity" column is editable.
The data need not to be edited. It must stay as is.
What to do in order to set it un-editable?
Haven't found any settings in the control's properties.
Help from the experts and the knowledgable are greatly appreciated.
I have a Listview control which displays various data.
The default selected item is the first item.
(Is it always the first item?)
Here's a simple code:
Code:
Dim objListItem As Object
lstvwXclList.View = lvwReport
' Set column headers
With lstvwXclList.ColumnHeaders
.Add , , "Activity", 4000
.Add , , "Description", 4700, lvwColumnLeft
.Add , , "Filename", 2400, lvwColumnRight
End With
Set objListItem = lstvwXclList.ListItems.Add()
objListItem.Text = "Swimming"
objListItem.SubItems(1) = "400 m Freestyle"
objListItem.SubItems(2) = "Swimming.xls"
The only clickable column is the first column.
In this case, the "Activity" column.
The problem here is the data in "Activity" column is editable.
The data need not to be edited. It must stay as is.
What to do in order to set it un-editable?
Haven't found any settings in the control's properties.
Help from the experts and the knowledgable are greatly appreciated.