Question Graphics and data gridview question

Huitain

New member
Joined
Feb 26, 2024
Messages
1
Programming Experience
Beginner
Hello,
How do you create a graph from the data displayed in a datagridview?
 
Are you targeting .NET Framework or .NET Core? .NET 5 and later are based on .NET Core. If it's the former, there is a Chart control in the Toolbox and you should learn how to use that first. Once you know how to populate a Chart control, then you can do it with the data from your grid or, more likely, from the grid's data source. If it's the latter then you could look for a third-party chart control or you can use standard GDI+ to draw a chart yourself. In that case, you should learn how to draw using GDI+ first, then decide the best way to represent the data you have.
 
Back
Top