Giter Site home page Giter Site logo

devexpress-examples / spreadsheet-document-api-use-worksheet-data-bindings-to-process-data Goto Github PK

View Code? Open in Web Editor NEW
0.0 56.0 0.0 75 KB

Use the Workbook instance to execute calculations on data bound to an external data source.

License: Other

C# 47.14% Visual Basic .NET 52.86%
dotnet documents office-file-api spreadsheet-document-api workbooks worksheets data-binding spreadsheet

spreadsheet-document-api-use-worksheet-data-bindings-to-process-data's Introduction

Spreadsheet Document API - Use Worksheet Data Bindings to Log and Process Data

This example illustrates the use of the DevExpress.Spreadsheet.Workbook instance to perform the calculations on data bound to an external data source. The calculation result is located in the cell exposed as the data source for the DevExpress.XtraGauges.Win.GaugeControl control.

image

Implementation Details

The source data are pairs of System.Diagnostics.PerformanceCounter object values. Performance samples (TwoCounterSample objects) are collected at the time interval specified by the timer. The samples are stored in the collection. A WorksheetProcessor object instance is created to process the collection of samples. A WorksheetProcessor includes a Workbook  instance with a Worksheet sheet containing a table bound to the performance data collection. The TableCollection.Add method is used to create a table bound to data. The CORREL statistical function calculates the correlation coefficient. The cell containing the calculation result is exposed as the data source using the CellRange.GetDataSource method. The worksheet data source providing a correlation coefficient value is bound to the Gauges.Circular.ArcScaleComponent.DataBindings and LabelComponent.DataBindings collections of the circular gauge control. The gauge control shows the correlation dynamically.

Files to Review

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

spreadsheet-document-api-use-worksheet-data-bindings-to-process-data's People

Contributors

annavekhina avatar devexpressexamplebot avatar geumjalee avatar natalyasenichkina avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.