title: How to create a chart from a GridControl
body: <p>Prior asking this question, i read similar post such as: </p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/26324195/create-chart-from-datagridview">Create chart from DataGridView</a></li>
  <li><a href="https://stackoverflow.com/questions/31005460/get-data-from-datagridview-to-chart">Get data from DataGridView to Chart</a></li>
  <li><a href="https://stackoverflow.com/questions/45542298/creating-chart-from-datagridview-c-sharp">Creating chart from datagridview C#</a></li>
  <li><a href="https://stackoverflow.com/questions/25347734/making-chart-from-datagridview">making chart from datagridview</a></li>
  <li><a href="https://stackoverflow.com/questions/57604667/c-sharp-using-data-from-datagridview-in-a-chart">C# Using data from DataGridView in a Chart</a></li>
  </ul>
  
  <p>But i am still unable to show my datagridview data to a my chart. I am using xtragrid and Xtracharts controls to achieve my task and in my datagridview, i have some unbound columns.</p>
  
  <p>here is the code i have tried to use</p>
  
  <pre><code>private  void ChartData()
          {
              Series S = new Series();
              LineSeriesView view = new LineSeriesView();
              S.View = view;
              ProdchartControl.DataSource = ProdgridControl.DataSource;
              S.ArgumentDataMember = "Prod Date";
              S.ValueDataMembersSerializable = "Orange prod";
              ProdchartControl.SeriesDataMember = "ProdID";
              ProdchartControl.Series.Add(S);
  
          }
  </code></pre>
  
  <p>your assitance will be welcomed.</p>
  
  <p>Thanks.</p>