ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBDropdown.Bookmark Property

Gets or sets the current row position of the underlying CurrencyManager.

[Visual Basic]

Public Property Bookmark As Integer

[C#]

public int Bookmark {get;set;}

[Delphi]

public property Bookmark: Int32 read get_Bookmark write set_Bookmark;

Remarks

Use the value returned by the Bookmark property to save a reference to the current row that remains valid even after another row becomes current.

When you set the Bookmark property to a valid value in code, the row associated with that value becomes the current row, and the grid adjusts its display to bring the new current row into view if necessary.

Example

The following code uses the Bookmark property to make row 10 the current row:

·      Visual Basic

       Me.C1TrueDBDropdown1.Bookmark = 10

·      C#

       this.c1TrueDBDropdown1.Bookmark = 10;

·      Delphi

       Self.C1TrueDBDropdown1.Bookmark := 10;

See Also

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


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