Skip to main content
A newer version of this page is available. .

ChartWizard.DataPage Property

Provides access to the Data page of the Chart Wizard.

Namespace: DevExpress.XtraCharts.Wizard

Assembly: DevExpress.XtraCharts.v19.2.Wizard.dll

Declaration

public WizardDataPage DataPage { get; }

Property Value

Type Description
WizardDataPage

A WizardPage object which represents the Data page.

Remarks

There are different ways to access a wizard’s pages. One of them is to obtain a required group from the ChartWizard.Groups array, and then to obtain a required page from the WizardGroup.Pages array. However, this approach appears to be inflexible, as it involves a group and page index.

If you want to get the direct access to a specific wizard group or page, use one of the following properties.

ChartWizard.ConstructionGroup

  1. ChartWizard.ChartTypePage
  2. ChartWizard.AppearancePage
  3. ChartWizard.SeriesPage
  4. DataPage

ChartWizard.PresentationGroup

  1. ChartWizard.ChartPage
  2. ChartWizard.DiagramPage
  3. ChartWizard.PanePage
  4. ChartWizard.AxisPage
  5. ChartWizard.SeriesViewPage
  6. ChartWizard.SeriesLabelsPage
  7. ChartWizard.TitlePage
  8. ChartWizard.LegendPage
  9. ChartWizard.AnnotationPage

For more information, refer to Chart Wizard.

Example

The following example demonstrates how to hide certain property tabs on a Chart Wizard‘s page at runtime. This technique is useful to prevent the end-users from modifying particular chart settings.

using DevExpress.XtraCharts.Wizard;
// ...

private void button1_Click(object sender, EventArgs e) {
    // Create a new Wizard.
    ChartWizard wizard = new ChartWizard(this.chartControl1);

    // Obtain a Data page.
    WizardDataPage page = wizard.DataPage;

    // Hide the tabs related to a data source on the Data page.
    page.HiddenPageTabs.Add(DataPageTab.AutoCreatedSeries);
    page.HiddenPageTabs.Add(DataPageTab.SeriesBinding);

    // Invoke the Wizard window.
    wizard.ShowDialog();
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DataPage property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also