Click here to Skip to main content
15,888,984 members
Home / Discussions / C#
   

C#

 
AnswerRe: Anyone familiar with Microsoft.Owin.Cors.CorsMiddleware? Pin
Alaric_30-Oct-14 15:38
professionalAlaric_30-Oct-14 15:38 
QuestionText Cursor Pin
OAportelles30-Oct-14 5:05
OAportelles30-Oct-14 5:05 
GeneralRe: Text Cursor Pin
PIEBALDconsult30-Oct-14 5:12
mvePIEBALDconsult30-Oct-14 5:12 
GeneralRe: Text Cursor Pin
OAportelles30-Oct-14 5:16
OAportelles30-Oct-14 5:16 
GeneralRe: Text Cursor Pin
PIEBALDconsult30-Oct-14 5:17
mvePIEBALDconsult30-Oct-14 5:17 
AnswerRe: Text Cursor Pin
Dave Kreskowiak30-Oct-14 5:54
mveDave Kreskowiak30-Oct-14 5:54 
AnswerRe: Text Cursor Pin
Richard MacCutchan30-Oct-14 23:00
mveRichard MacCutchan30-Oct-14 23:00 
QuestionBinding CSV data to a chart - Problem Pin
Member 1119305330-Oct-14 3:56
Member 1119305330-Oct-14 3:56 
Hi!
I tried to read a CSV data and show its graph in the GUI with VisualStudio. My Code is:

C#
private void button1_Click_1(object sender, EventArgs e)
        {

string file = @"C:\Main";


string ConStr = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + file + ";Extended Properties=\"Text;HDR=Yes;FMT=Delimited\"";
                          OleDbConnection myConnection = new OleDbConnection(ConStr);

                          // Create a database command on the connection using query
                          string query = @"select * from [test.csv]";
                          OleDbCommand myCommand = new OleDbCommand(query, myConnection);

                          // Open the connection and create the reader
                          myCommand.Connection.Open();
                          OleDbDataReader myReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection);

                          DataTable tb = new DataTable();
                          using (OleDbDataAdapter ad = new OleDbDataAdapter(query, myConnection))
                          {
                              ad.Fill(tb);
         
                          }
                      chart1.Series["Test"].Points.DataBindXY(myReader, "Date", myReader,"Value");
                            chart1.Series["Test"].ChartType = SeriesChartType.Spline;




                  
                          myReader.Close();
                          myConnection.Close();
              
            }


The problem is that he can't find the second column (Exception). But if I change the "Value" in
Points.DataBindXY(myReader, "Date", myReader,"Value");

to "" he prints the graph where the Y-Axis seems to be broken.
How can I show the graph correctly?
QuestionHow to change IP address of web service. Pin
Sachin Malviya30-Oct-14 1:57
Sachin Malviya30-Oct-14 1:57 
AnswerRe: How to change IP address of web service. Pin
OriginalGriff30-Oct-14 2:20
mveOriginalGriff30-Oct-14 2:20 
AnswerRe: How to change IP address of web service. Pin
ZurdoDev30-Oct-14 3:00
professionalZurdoDev30-Oct-14 3:00 
AnswerRe: How to change IP address of web service. Pin
RichardGrimmer30-Oct-14 5:23
RichardGrimmer30-Oct-14 5:23 
GeneralRe: How to change IP address of web service. Pin
Sachin Malviya31-Oct-14 5:08
Sachin Malviya31-Oct-14 5:08 
QuestionHow To Reduce CPU Usage ? Pin
AmbiguousName30-Oct-14 1:43
AmbiguousName30-Oct-14 1:43 
AnswerRe: How To Reduce CPU Usage ? Pin
BillWoodruff30-Oct-14 4:32
professionalBillWoodruff30-Oct-14 4:32 
QuestionMagTek MSR , Magnetic Swipe Reader Pin
Hari-CodeBlogger30-Oct-14 0:48
Hari-CodeBlogger30-Oct-14 0:48 
AnswerRe: MagTek MSR , Magnetic Swipe Reader Pin
BillWoodruff30-Oct-14 1:13
professionalBillWoodruff30-Oct-14 1:13 
AnswerRe: MagTek MSR , Magnetic Swipe Reader Pin
Garth J Lancaster31-Oct-14 13:18
professionalGarth J Lancaster31-Oct-14 13:18 
GeneralRe: MagTek MSR , Magnetic Swipe Reader Pin
Hari-CodeBlogger2-Nov-14 22:10
Hari-CodeBlogger2-Nov-14 22:10 
GeneralRe: MagTek MSR , Magnetic Swipe Reader Pin
Moazza anwer29-Jun-18 0:00
Moazza anwer29-Jun-18 0:00 
Questionhow to blink a row when particular column value is todays date - VB - Access code Pin
Member 1119188529-Oct-14 22:25
Member 1119188529-Oct-14 22:25 
AnswerRe: how to blink a row when particular column value is todays date - VB - Access code Pin
Richard MacCutchan29-Oct-14 22:26
mveRichard MacCutchan29-Oct-14 22:26 
GeneralRe: how to blink a row when particular column value is todays date - VB - Access code Pin
Member 1119188529-Oct-14 22:46
Member 1119188529-Oct-14 22:46 
GeneralRe: how to blink a row when particular column value is todays date - VB - Access code Pin
OriginalGriff29-Oct-14 23:25
mveOriginalGriff29-Oct-14 23:25 
GeneralRe: how to blink a row when particular column value is todays date - VB - Access code Pin
Alaric_31-Oct-14 2:39
professionalAlaric_31-Oct-14 2:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.