Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 10-25-2006, 02:57 AM
dido dido is offline
Junior Member
 
Join Date: Oct 2006
Posts: 1
Default DBGrid highlights wrong row after mouse click from insert row

TCustomDBGrid descendants (VCL and VCLX) highlight the wrong row:

- Focus must be on a new row at the bottom of the grid
- The row must not have been edited.
- Click a previous row in the grid.
- The new record disappears (expected).
- Focus moves to the record directly above the row that was clicked.

Steps to Reproduce:

1. Create new application (VCL or VCLX).

2. Add database components (VCLX components listed for example):

TSQLConnection
TSQLQuery
TDataSetProvider
TClientDataSet
TDataSource

3. Link components, add database connection information, and add a query.

4. Add TDBGrid.

5. Link TDBGrid to TDataSource from step 2.

6. Set TClientDataSet Active property to True.

7. Run.

8. Move TDBGrid focus to last record (there must be at least 2).

9. Down arrow to begin a new row.

10. Click on the row above the new one.

11. Focus is not on the row that was clicked.
Reply With Quote
  #2  
Old 10-25-2006, 03:09 AM
daltamira daltamira is offline
Senior Member
 
Join Date: Aug 2006
Location: Argentina
Posts: 959
Default RE: DBGrid highlights wrong row after mouse click from insert row

you're right. I didn't know about this "bug". The focus is put in the record above of which you click.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:46 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.