ComponentOne True DBGrid Pro 8
SelText Property

This property returns or sets the string containing the currently selected text within the grid's editing window.

Syntax

TDBGrid.SelText= string

Remarks

Read/Write at run time. Not available at design time.

If no text is currently selected, then this property returns an empty string.

Setting SelText to a new value sets SelLength to 0 and replaces the selected text with the new string.

Use the SelText property in combination with the SelStart and SelLength properties to set the insertion point, establish an insertion range, select substrings, or clear text. These properties are useful for implementing copy, cut, and paste operations that transfer string data to and from the clipboard.

See Also

TDBGrid Control

 

 


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

Product Support Forum  |  Documentation Feedback