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



The information in this article applies to:

  • Microsoft Visual Studio, Enterprise Edition 6.0

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: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 "Applies to" section of this article.Microsoft is researching this problem and will post more information in this article when the information becomes available.

MORE INFORMATION

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:
  1. In Microsoft Visual Studio 6.0, use Visual Basic to create Windows Application project.
  2. Add a Microsoft ADO Data Control 6.0 control to the form.
  3. Set the ConnectionString property of the control to connect to the Biblio.mdb database as follows:

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

  4. Set the RecordSource property to the following:

    select * from Authors

    .
  5. Add a Microsoft DataGrid Control 6.0 control to the form.
  6. Set the DataSource property to connect the grid to the data source as follows:

    adodc1

  7. Set the RightToLeft property to true.
  8. Add a CommandButton object to the form. By default, a button that is named Command1 is created.
  9. 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
  10. Run the application.

    Notice that the text in the Author column appears correctly.
  11. Click Command1.

    Notice that the text in the Author column disappears.

Modification Type:MinorLast Reviewed:10/21/2005
Keywords:kbpending kbfix kbbug KB837402 kbAudDeveloper