Sets column information for a DataWindow, child DataWindow, or ListView control.
For syntax for a DataWindow or child DataWindow, see the SetColumn method for DataWindows in the DataWindow Reference or the online Help.
ListView controls
listviewname.SetColumn ( index, label, alignment, width )
Argument |
Description |
---|---|
listviewname |
The name of the ListView control for which you want to set column properties. |
index |
The number of the column for which you want to set column properties. |
label |
The label of the column for which you want to set column properties. |
alignment |
A value of the Alignment enumerated datatype specifying how to align the column. Values are:
|
width |
The width of the column for which you want to set column properties. |
Integer. Returns 1 if it succeeds and -1 if an error occurs.
SetColumn is used only in report views.
This example sets the second column of a ListView:
lv_list.SetColumn(2 , "Order" , Center! , 800)