property ComboBox.LabelColumnIndex as Long
Specifies a different column (index) to be displayed on the control's label, while the SingleEdit property is True.

 TypeDescription 
   Long A Long expression that specifies the index of the column to be displayed on the control's label, when the SingleEdit property is True.  
By default, the LabelColumnIndex property is -1, which indicates that the SearcColumnIndex property is used instead. In other words, by default the LabelColumnIndex property has no effect, while it points to a non-existing column. For instance, if the control is hosted as an user editor by eXGrid/eXG2antt control, you can specify a different column to be displayed in place. Use the LabelText property to display a custom label.

The LabelColumnIndex property has effect only it:

The following screen shot shows the control with SearchColumnIndex property on 0 ( by default ), and LabelColumnIndex property on -1 ( by default ):

The following screen shot shows the control with SearchColumnIndex property on 0 ( by default ), and LabelColumnIndex property on 7:

The following screen shot shows the control with SearchColumnIndex property on -1, LabelColumnIndex property on -1, AdjustSearchColumn property on False, LabelText property on " this is just a custom label":


Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.