Click here to Skip to main content
15,903,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have to create charts with dynamic datasource, I have a code.

It does not show error but the graph is also not visible on runtime.

Here out_table is the name of my table and ADX is one of its column.
code:
C#
OleDbConnection con1 = new OleDbConnection(@"PROVIDER=Microsoft.ACE.OLEDB.12.0;DATA SOURCE=RS.accdb");
            String sqlo = "Select ADX from " + out_table + "";
            OleDbCommand myCommand = new OleDbCommand(sqlo, con1);
            myCommand.Connection.Open();
            OleDbDataReader myreader = myCommand.ExecuteReader(CommandBehavior.CloseConnection);
            chart1.DataBindTable(myreader, "ADX"); 

Please help asap.
Posted
Updated 28-Mar-12 13:25pm
v2

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