Letting users redefine the crosstab

With the CrosstabDialog method for the DataWindowControl, you can allow users to redefine which columns in the retrieved data are associated with the crosstab's columns, rows, and values at runtime. This method is not available on DataStores or WebDataWindowControls.

The CrosstabDialog method displays the Crosstab Definition dialog box to allow the user to define the data for the crosstab's columns, rows, and values (using the same techniques as in DataWindow Designer). When the user clicks OK in the dialog box, the DataWindowControl rebuilds the crosstab with the new specifications.

As with other DataWindow objects, you can modify the properties of a crosstab at runtime using the Modify or SetProperty methods. For more information, see “Modifying a crosstab's properties at runtime”.