Gets or sets a value that controls how the grid scrolls when the scroll thumb is moved.
[Visual Basic]
Public Property ScrollTrack As Boolean
[C#]
public bool ScrollTrack {get;set;}
[Delphi]
public property ScrollTrack: Boolean read get_ScrollTrack write set_ScrollTrack;
Remarks
If True, moving the scrollbar thumb causes the grid's display to update with new data.
If False (the default), moving the scrollbar thumb does not change the display.
If the ScrollTrack property is True, moving the scrollbar thumb causes the grid to scroll.
Example
The following code sets the ScrollTrack property to True, allowing you to see data in the grid as it scrolled:
Me.C1TrueDBGrid1.ScrollTrack = True
· C#
this.c1TrueDBGrid1.ScrollTrack = true;
· Delphi
Self.C1TrueDBGrid1.ScrollTrack := True;
For an example of scroll tracking, see Tutorial 22 - Borders, Scroll Tracking, and Scroll Tips.
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |