PRB: Previously Selected Columns of the Grid DTC Are Displayed (190947)



The information in this article applies to:

  • Microsoft Visual InterDev 6.0

This article was previously published under Q190947

SYMPTOMS

Previously selected columns of the Grid Design-Time Control (DTC) are displayed even though all columns have been cleared. (This should not be confused with the DTC Grid's bindAllColumns feature, which displays all columns in the current Recordset when no columns are selected.)

CAUSE

If you delete all columns of the Grid DTC, the old column attributes persist because the new attributes are not saved.

RESOLUTION

The easiest way to work around this problem is to modify another attribute of the Grid (for example, select a different "Style name" and then reselect the old one). Alternatively, you can delete the recordset and reselect it in the Recordset drop-down box.

STATUS

This behavior is by design.

NOTE: This problem does not occur in Visual Studio 6.0 Service Pack 5.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Drop a Grid DTC on an Active Server Pages (ASP) or HTML page. Connect the Grid DTC to a recordset with multiple columns (for example, 20 columns).
  2. On the Data tab of the Properties Pages of the Grid DTC, select the recordset from the drop-down list box.
  3. Select 5 of the columns. Apply the changes, and preview in the browser. Note that the columns that you selected are displayed.
  4. On the Properties Pages, delete all of the columns, and apply the changes.
  5. Preview the page again. Notice that the same columns are displayed rather than all of the columns as expected.

Modification Type:MinorLast Reviewed:3/7/2005
Keywords:kbCtrl kbide kbprb KB190947