ComponentOne List 8.0 for ActiveX
DestinationSplit Property (TDBCombo)

 

TDBCombo Reference> TDBCombo Control Properties> DestinationSplit Property (TDBCombo)

DestinationSplit Property (TDBCombo)

This property is used when moving from one cell to another in the control.  It indicates which split will be the destination of the movement.

Syntax

object.DestinationSplit

Remarks

Read-only at run time. Not available at design time.

Property applies to TDBCombo and TDBList controls.

The value returned is the zero-based index of the split containing the destination cell. In the case of a click on an area of the List not belonging to any split, such as the corner between the vertical and horizontal scrollbars, or on a split border, DestinationSplit returns -1.

This property is available only during those events related to cell movement:  Click, DblClick, FootClick, GroupHeadClick, HeadClick, MouseDown, MouseUp. Any attempt to access the DestinationSplit property outside of these events results in a trappable error ("Property not available in this context").

The property can only be used if the movement is initiated interactively by the user, via the keyboard or mouse. The property is not available when movement is initiated programmatically (for example, when setting the control's Split property).

Note: Care must be exercised when using this property, because it is possible to use the value this property in an event (such as MouseDown) before knowing whether or not the movement will actually succeed. The value returned by this property only indicates what the correct destination split will be if the cell movement is successful

The DestinationSplit property does not guarantee that the cell movement will succeed (for example, movement may fail if the contents of the current cell are not valid).  In such cases, the DestinationSplit property will not reflect the actual destination position (usually the cell position will remain at the previous location).

See Also

TDBList and TDBCombo Controls

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback