PRB: Previously Selected Columns of the Grid DTC are Displayed

ID: Q190947


The information in this article applies to:
  • Microsoft Visual InterDev, version 6.0


SYMPTOMS

Previously selected columns of the Grid Design-time control (DTC) are being 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 get around this is to modify another attribute of the Grid (such as selecting a different "Style name" and reselecting the old one). Alternatively, you could delete the recordset and reselect it in the Recordset drop-down box.


STATUS

This behavior is by design.


MORE INFORMATION

Steps to Reproduce Behavior

  1. Drop a Grid DTC on an Active Server Pages (ASP) or HTML page. Connect it to a recordset with multiple columns (say, 20).


  2. Go to the Data tab on the Properties Pages of the Grid DTC. Select the recordset from the drop-down list.


  3. Now select several (say, 5) of the columns. Apply the changes and preview in the browser. Note that the columns you selected are being displayed.


  4. Now go back to the properties pages and delete all of the columns and apply the changes.


  5. Preview again and note that the same columns are being displayed rather than all of the columns as you would expect.


Additional query words:

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


Last Reviewed: May 24, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.