Delphi and Kylix

Moderators: pritaeas
Number of threads: 7264
Number of posts: 19073

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Row Select in a TDBGrid??? Posted by Slydog42 on 17 Jan 2003 at 10:13 AM
Hi, I'm wondering if anyone has experience with the Row Select property in a TDBGrid. This much I know - if the option dgRowSelect is set to True, then clicking on a row will highlight that row with a dark color. Also, that row becomes the active row for the dataset, as indicated by the arrow on the left of the grid. (I am not using multiselect.)

However, I've found that I can not get a row to highlight without clicking. I want the highlighting to happen automatically. For example, when the user first enters the grid, the first row should be highlighted! As I'm doing it now, the first row is ACTIVE (the arrow), but NOTHING is highlighted. Also, I am doing searches, and changing the datasets active record, and this scrolls the grid to the matching record, which also becomes the active row (again, the arrow). But here, also, the row is not HIGHLIGHTED!

Can anyone help? How do I get my active row highlighted??

Any help would be greatly appreciated,

Rusty



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.