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

cmdolcet
cmdolcet used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Chinmay PatelChief Technology Ninja
Distinguished Expert 2018

Commented:
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.

Author

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

Author

Commented:
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.
Chinmay PatelChief Technology Ninja
Distinguished Expert 2018

Commented:
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.

Author

Commented:
Yes I know I can use the annotation feature, however how do I tie it into my clicks with the grid below?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial