Gets or sets a value indicating the behavior of the grid and row currency when the grid's datasource is sorted.
[Visual Basic]
Public Property MaintainRowCurrency As Boolean
[C#]
public bool MaintainRowCurrency {get;set;}
[Delphi]
public property MaintainRowCurrency: Boolean read get_MaintainRowCurrency write set_MaintainRowCurrency;
Remarks
The default value for this property is False.
Set this property to True and click the grid's column header to sort the grid. The grid's current row position will be adjusted so that its new position will be on the same row that was current prior to the sort.
Example
The following code sets the MaintainRowCurrency property to True:
Me.C1TrueDBGrid1.MaintainRowCurrency = True
· C#
this.c1TrueDBGrid1.MaintainRowCurrency = true;
· Delphi
Self.C1TrueDBGrid1.MaintainRowCurrency := True;
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |