BUG: DTC Grid Is Truncated or Missing Columns (191150)



The information in this article applies to:

  • Microsoft Visual InterDev 6.0

This article was previously published under Q191150

SYMPTOMS

A Grid design-time control (DTC) with a width that is measured in percentage on an Active Server Pages (ASP) page is truncated or missing columns on the right side when you view the Grid DTC in Microsoft Internet Explorer.

CAUSE

The HTML Table, which the Grid DTC generates, 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 on 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 according to percentage, it is interpreted as a percentage of the element within which it is contained. 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 must compute the number of pixels.

Another solution depends on 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) allows 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 can turn off all navigation and eliminate the second inner table. In this case, the width of the outer table is determined by the data that is being displayed; however, some information may still be truncated.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Modification Type:MinorLast Reviewed:3/7/2005
Keywords:kbbug kbCtrl KB191150