ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.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

When the Bookmark property is set 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.

In most cases the Bookmark property is synchronized with the Row property. Under the GroupByDataView, the Row property may identify a grouped row which has no association with a row in the data source. In this case the values of Bookmark and Row will differ.

Example

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

·      Visual Basic

       Me.C1TrueDBGrid1.Bookmark = 10

·      C#

       this.c1TrueDBGrid1.Bookmark = 10;

·      Delphi

       Self.C1TrueDBGrid1.Bookmark := 10;

See Also

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


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