Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3454548
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:30:24+00:00 2026-05-18T09:30:24+00:00

Does anyone work with Infragistics UltraChart? I’m trying to bind a DataTable with elevation

  • 0

Does anyone work with Infragistics UltraChart? I’m trying to bind a DataTable with elevation monitor data to a line graph in a Windows form.

As you can see from the following code, I have the DataSet and DataTable defined, and have started setting up the properties of the chart, but I’m not sure how to tie the DataTable table to the XYDataPointCollection series in the chart. Basically I want to be able to graph a line from two fields in the data table: “dateTime” (x-axis) and “gwElevation” (y-axis) for a specified date range.

}
GroundwaterMonitorDataSet gwMonDataSet = new GroundwaterMonitorDataSet();
DataTable gwMonDataTable = new DataTable();
gwMonDataTable = gwMonDataSet.Tables.Add(“P-14-01_Data”);

  this.chartGwData.ChartType = Infragistics.UltraChart.Shared.Styles.ChartType.LineChart;
  Infragistics.UltraChart.Data.Series.XYDataPointCollection gwMonSeries = new Infragistics.UltraChart.Data.Series.XYDataPointCollection();

  chartGwData.LineChart.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Solid;
  chartGwData.LineChart.StartStyle = Infragistics.UltraChart.Shared.Styles.LineCapStyle.Round;
  chartGwData.LineChart.EndStyle = Infragistics.UltraChart.Shared.Styles.LineCapStyle.Flat;
  chartGwData.LineChart.NullHandling = Infragistics.UltraChart.Shared.Styles.NullHandling.DontPlot;
  chartGwData.LineChart.Thickness = 3;

  this.chartGwData.DataSource = gwMonDataTable;
  this.chartGwData.DataBind();

}

Thanks for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T09:30:25+00:00Added an answer on May 18, 2026 at 9:30 am

    Well I finally figured it out on my own:

    First an EnumerableRowCollection must be created. I created one using a linq query which read from a table in my DataSet:

    //create EnumerableRowCollection using the linq query on the DataSet table
    gwMonDataTable = gwMonDataSet.P1401;
          EnumerableRowCollection<DataRow> qrySelectGwMonRecords =
            (from g in gwMonDataTable.AsEnumerable()
             where g.Field<DateTime>("readingDate") >= clndrGwMonStart.Value && g.Field<DateTime>("readingDate")<= clndrGwMonEnd.Value
             select g);
    

    Then I create a NumericTimeSeries, which is populated using a foreach loop:

    //create NumericTimeSeries; populate using foreach loop
    Infragistics.UltraChart.Resources.Appearance.NumericTimeSeries gwElevSeries = new Infragistics.UltraChart.Resources.Appearance.NumericTimeSeries();
          foreach (DataRow gwElevDr in qrySelectGwMonRecords)
          {
            gwElevSeries.Points.Add(new Infragistics.UltraChart.Resources.Appearance.NumericTimeDataPoint(System.DateTime.Parse(gwElevDr.ItemArray[2].ToString()),System.Double.Parse(gwElevDr.ItemArray[8].ToString()),"C",false));
          }
    

    Now the NumericTimeSeries is ready to be added to the UltraChart:

    //add the data series to the chart as the data source
    chartGwData.Series.Add(gwElevSeries);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know how function indexes work in databases?
Does anyone know how to get IntelliSense to work reliably when working in C/C++
Does anyone have an example of script that can work reliably well across IE/Firefox
Does anyone know how the validation will work with V1? I'm at the crossroads,
Does anyone know why the DropShadowBitmapEffect and the EmbossBitmapEffect won't work on a TextBlock
Does anyone know why typedefs of class names don't work like class names for
I currently work for a bespoke software agency. Does anyone have any experience of
Where I work, people don't like to write specs. (Boy, does anyone?) So they
anyone have any experience of using them together? How well does it work? or
Anyone know this compiler feature? It seems GCC support that. How does it work?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.