Jump to content
  • Advertisement
Sign in to follow this  
foxars

visual c# express graph (chart)

This topic is 4369 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I've a sql server 2005 database and visual c# 2005 express, I would like to know how to draw a chart (graph) from this sql server database. Thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
The easy way:

Use some ready-made charting component library, plonk a chart control into your form, and set it's data source to be from your database; that's it.

The hard way:

The data in your database table is effectively an array of records. With an ADO.net data adapter, it is easy to iterate over database records as an actual typed array - just draw some boxes, lines or pie segments that represent whatever quantity of the records you want to chart.

You can also use a recordset object to "manually" query the table, but I find the data adapter objects generally more convenient to use.

Share this post


Link to post
Share on other sites
Thank you,

I'm asking for who knows a free grid component for visual c# express.

thanx in advance

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!