Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Database/Data Aware Controls/TDBGrid    [ Add a report in this area ]  
Report #:  70075   Status: Open
TDBGrid bdRightToLeft Bug
Project:  Delphi Build #:  16989
Version:    12.1 Submitted By:   Issam Ali
Report Type:  Basic functionality failure Date Reported:  12/22/2008 1:16:58 AM
Severity:    Serious / Highly visible problem Last Updated: 12/23/2008 9:54:41 PM
Platform:    All platforms Internal Tracking #:  
Resolution: Duplicate  Resolved in Build: : None
Duplicate of:  69465
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 20
Description
There is an obvious bug in TDBGrid  in Delphi2009, Delphi2009 Update1 and Delphi2007, this bug will be ?isible·if you change the BiDiMode property of TDBGrid to  bdRightToLeft, and try to cover the DBGrid in runtime or design time with any other window or component, then you will notice the distortion in the DBGrid canvas.
Steps to Reproduce:
- Start a new vcl Application
- add a DBGrid and assign it to a DataSource and let it has some records.
- change BiDiMode property of the DBgrid to  bdRightToLeft.
- run the application.
- try to move the form that contains the DBgrid beneath any other window or the Taskbar and you will notice the mess in the DBgrid canvas.
Workarounds
I've made a quick solution by (re)implementing the  WMPaint procedure in TCustomDBGrid, see my Blog.

http://blog.issamsoft.com/index.php?q=en/node/34
Attachment
None
Comments

Tomohiro Takahashi at 12/23/2008 9:55:24 PM -
Thanks for workaround.
Is you issue same as QC#69465 ?

Issam Ali at 12/25/2008 8:10:50 AM -
yes, it seams working well with ADO!

Server Response from: ETNACODE01