Last post Jul 16, 2008 10:27 AM by narina
Jul 16, 2008 10:27 AM|narina|LINK
please help me
hi everybody i want to draw a line chart that its datapoints are coming from my database from one table. i want to get one data column as x of my points and another data column as y of my points. for example : int x1 = Convert.ToInt32(MyReader["DollarPrice"]);
int y1 = Convert.ToInt32(MyReader["GoldPrice"]); and i want to use them to draw the chart. but how? i used while loop : while (MyReader.Read()) but it just get the first data and show nothing.My g.drawline does not work . how should i use drawline method
? i have just one point : point p1=new point (x1,y1) and it read from database continiously .how i can use just this parametrized point to draw my line chart? i couldn`t find in the web for two weeks.pleasehelp.thanks a lot.