Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 3.0 - How Do You Make Grid Show Current Record
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00098099
Message ID:
00098102
Views:
30
>With a simple flat database, indexed on one key field (i.e. name),
>
>I created a grid where a user can select a record, hit 'select' and
>then be brought to the correct record on a dataentry form.
>
>A enhancement was to add a text box where you can do a incremental
>search. After each letter is entered, the grid is refreshed to
>show the record found.
>
>PROBLEM: In the grid, numerous records are shown. I would like
>to have the current record highlighted either with a arrow or color change.
>
>Any hints as to what method I should be trying to implement?
>
>Thanks!!

As long as your incremental search textbox is searching the same table as displayed in the grid, place the following in the InteractiveChange method of the Incremental search textbox:
  DoDefault()
  ThisForm.GridName.Refresh()
I use the DoDefault() because my IncSearch code is located in this method of my sub-class which I assume is the same for you.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform