ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.SelectionStart Property

Gets or sets the starting point of the text selection within the grid's editing window.

[Visual Basic]

Public Property SelectionStart As Integer

[C#]

public int SelectionStart {get;set;}

[Delphi]

public property SelectionStart: Int32 read get_SelectionStart write set_SelectionStart;

Remarks

If no text is currently selected, then this property indicates the position of the insertion point.

When editing is not is progress, this property returns 0.

Setting SelectionStart to a value greater than the length of the text in the cell sets it to this length. Changing SelectionStart moves the entire selection while preserving the value of SelectionLength, if possible. If there are not enough characters, SelectionLength is decreased accordingly.

Use the SelectionStart property in combination with the SelectionLength and SelectedText 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

C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.