Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using DataGridView for displaying Excel spreadsheets, all of that is fine until I got to the sheet that contains a bar graph as well as some data. I cannot figure out how to display the graph and need some help.

What I have tried:

Extensive search on the net, although maybe there are better search terms.
Posted
Updated 8-Aug-23 3:35am
Comments
Andre Oosthuizen 8-Aug-23 9:18am    
This might help or point you in the right direction - C# Tutorial - How to Link Chart /Graph with Database [^]

1 solution

You can't. The DGV is not Excel. It doesn't support showing any graphs like Excel does.

You'll have to use a charting library and feed it the data to create a new chart in your code/app and show that.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900