Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Collapse]Pivot Grid
   [Expand]Getting Started
   [Expand]Fundamentals
   [Collapse]Binding to Data
     Binding to Data Overview
    [Expand]Data Source Configuration Wizard
    [Expand]OLAP Data Source
    [Collapse]Database Server Mode
      Binding to a Data Source Using Entity Framework
      Binding to a Data Source Using 'LINQ to SQL Classes'
      Binding to a Data Source Using WCF Server
     Unbound Fields
     Local Data Stores
     Asynchronous Mode
   [Expand]Data Shaping
   [Expand]Data Analysis
   [Expand]Layout
   [Expand]Focus and Navigation
   [Expand]Printing and Exporting
   [Expand]Appearance
   [Expand]Design-time Features
   [Expand]Miscellaneous
   [Expand]UI Elements
   [Expand]End-User Capabilities
   [Expand]Examples
   [Expand]Member Tables
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Binding to a Data Source Using WCF Server

The PivotGridControl automatically operates in server mode if it is bound to appropriate supported data source. This example shows how to access WCF service from a Windows Forms application using the Server Mode.

Note

To follow this tutorial, a working WCF service that can be tested and accessed is required. To learn more about creating a WCF data service, see the following MSDN topic: Creating the Data Service.

Creating Service Reference

  1. After creating the WCF data service, add a new service reference to the project.

    Click the Discover button and select the created WCF service (.svc).

    Click OK and rebuild the project.

Binding a Pivot Grid Control to the WcfServerModeSource component

  1. Drag the WcfServerModeSource component and drop it onto the Form.

  2. Specify the WcfServerModeSource.KeyExpression property.

  3. Specify the query using the WcfServerModeSource.Query property. This property must be set in code.

  4. Bind the Pivot Grid control to the created WcfServerModeSource component.

Note

To learn how to bind the PivotGridControl to data using the Data Source Configuration Wizard, see the WCF Data Services tutorial.

Expanded See Also

How would you rate this topic?​​​​​​​