Link to home
Start Free TrialLog in
Avatar of cmdolcet
cmdolcetFlag for United States of America

asked on

How can I bind DataGrid Data to a chart control in Visual Studios 2017?

i had a datagrid control that reports out a series of values. I would like to bind those values in a chart control object so that if I select a value on the datagrid then it will highlight in the chart.

What are the binding properties to do this?
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Hi cmdolcet,

How you plan to select a value? And is it a value(column) or the entire row of the Datagrid that will be selected?

Regards,
Chinmay.
Avatar of cmdolcet

ASKER

Sorry for the delay I plan to select the value by individual cell in a datagrid.
Chinmay,

Any update to this.

I would be using a data grid to select the individul cell on the grid and I would like to be able to show that selected point on a data chart.
Hi cmdolcet,

Sorry for the delay, I missed this one somehow. You can highlight a  data point using annotation https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.datavisualization.charting.annotation?view=netframework-4.8

Regards,
Chinmay.
Yes I know I can use the annotation feature, however how do I tie it into my clicks with the grid below?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.