PRB: DTC Grid is Truncated or Missing Columns

ID: Q191150


The information in this article applies to:


SYMPTOMS

A Grid design-time control (DTC) with a width measured in percent on an Active Server Pages (ASP) page is truncated or missing columns on the right- hand side when viewed using Internet Explorer.


CAUSE

The HTML Table generated by the Grid DTC consists of two tables within a third table. The first inner table contains the data to be displayed and the second inner table contains the navigation buttons (one or two Recordset Navbar(s) depending upon the configuration).

The width for the Grid DTC is set in the inner data table. The second inner table always has a width of 100 percent. When the data table's width is set to percent it is interpreted as a percentage of the element it is contained within. The outer table has no width tag and shrinks to fit its contents. The end result is a grid whose width is determined by its contents rather than sizing attributes.

The contents of the bottom inner table (the navigation buttons) determines the width of the outer table. If the bottom inner table is smaller than the top inner table (the data), the top table is truncated.


RESOLUTION

One solution is to use pixels for your width rather than percentages; however, you will need to compute the number of pixels.

Another solution depends upon what type of data is displayed. You may find that enabling the row navigation buttons for the Grid DTC (see the Navigation tab on the Custom Property page) will allow all of your data to be displayed correctly, and you can modify the captions of the navigation buttons so they take more horizontal space.

Alternatively, you could turn off all navigation and eliminate the second inner table. The width of the outer table would be determined by the data being displayed; however, some information may still be truncated.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

Additional query words:


Keywords          : kbCtrl kbVisID600 kbGrpASP 
Version           : WINDOWS:6.0
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: May 24, 1999