A ColumnHeader object represents an individual item in the ColumnHeaders collection of a ListView control. It represents the heading text in the ListView control.
App.ActiveForm.ListViewControl.ColumnHeaders(x)
Newlook Smartclient only.
Column headers can only be viewed when the ListView object is displayed in Report mode. Modify the View property of the ListView control to display in Report mode.
A Column header can be added at Design time or modified dynamically at run time.
The following properties can be specified for each ColumnHeader object to specify its appearance:
Newlook Smartclient |
Newlook Server |
Deprecated
|
Obsolete
Property |
Client |
Description |
|
Returns or sets a value that determines the alignment of the item. |
|
|
Returns or sets the index of the Icon in the Icons collection that will be displayed next to this item. |
|
|
Returns the index of the current item. |
|
|
Store additional information about an object. |
|
|
Sets or returns the text associated with the ColumnHeader. |
|
|
Gets or sets the width of the object in pixels at default size, which is the object's size at design-time. |
The following example dynamically sets the header text for the first two columns of the lsvEmployee ListView control to "Employee" and "Address" respectively. VB SCRIPTApp.ActiveForm.lsvEmployees.ColumnHeaders(0).Text = "Employee" App.ActiveForm.lsvEmployees.ColumnHeaders(1).Text = "Address" JSCRIPTApp.ActiveForm.lsvEmployees.ColumnHeaders(0).Text = "Employees"; App.ActiveForm.lsvEmployees.ColumnHeaders(1).Text = "Addresses"; |
ListItems property | ColumnHeaders collection
© 2004-2021 looksoftware. All rights reserved.