Object Reference > True DBGrid Properties > SelLength Property |
This property returns or sets the number of characters selected within the grid's editing window.
TDBGrid.SelLength= long
Read/Write at run time. Not available at design time.
When editing is not is progress, this property returns 0.
Setting SelLength to a value less than 0 causes a run time error.
Use the SelLength property in combination with the SelStart and SelText 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.