Microsoft KB Archive/837402

= FIX: The ADO DataGrid control may hide parts of the text if you create the application in Visual Studio 6.0 =

Article ID: 837402

Article Last Modified on 10/21/2005

-

APPLIES TO


 * Microsoft Visual Studio 6.0 Enterprise Edition

-





SYMPTOMS
In a Microsoft Windows-based application, if you use a Microsoft ADO DataGrid Control 6.0 control that has the RightToLeft property set to true, and that has the Column Alignment property set to right or to center, some parts of the text that should appear in the data grid are hidden.

Note The RightToLeft property specifies whether the text appears from right to left, such as when you use Hebrew or Arabic fonts.



RESOLUTION
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

Note You must have a Visual Studio license agreement to obtain this hotfix.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this hotfix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.   Date         Time   Version    Size     File name 29-Sep-2002 17:51  6.0.93.63  268,288  MSDatGrd.Ocx



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section of this article.Microsoft is researching this problem and will post more information in this article when the information becomes available.



Steps to reproduce the problem
Note To reproduce the problem, you must set the operating system that is installed on your computer to use Arabic, to use Hebrew, or to use another language that appears from right to left as the language for non-Unicode programs. To do this in the Microsoft Windows XP operating system, follow these steps:
 * 1) Click Start, and then click Control Panel.
 * 2) In Control Panel, double-click Regional and Language Options. The Regional and Language Options dialog box appears.
 * 3) Click the Advanced tab.
 * 4) Under Language for non-Unicode programs, select the language that you want to use in the list.
 * 5) Click OK.

To reproduce the problem, follow these steps:  In Microsoft Visual Studio 6.0, use Visual Basic to create Windows Application project. Add a Microsoft ADO Data Control 6.0 control to the form. Set the ConnectionString property of the control to connect to the Biblio.mdb database as follows:

ConnectionString=&quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Microsoft Visual Studio\VB98\BIBLIO.MDB;Persist Security Info=False&quot;

 Set the RecordSource property to the following:

select * from Authors

. Add a Microsoft DataGrid Control 6.0 control to the form.</li> Set the DataSource property to connect the grid to the data source as follows:

adodc1

</li> Set the RightToLeft property to true.</li> Add a CommandButton object to the form. By default, a button that is named Command1 is created.</li>  Add the following code to the Click event handler of the Command1 CommandButton control: Private Sub Command1_Click DataGrid1.Columns(1).Alignment = dbgRight

End Sub </li> Run the application.

Notice that the text in the Author column appears correctly.</li> Click Command1.

Notice that the text in the Author column disappears.</li></ol>

Keywords: kbbug kbfix kbpending KB837402

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.