System.FormatException: Input string was not in a correct format.

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Source Error:


Line 22: sda.Fill(ds,"Individuals");
Line 23: dgIndividuals.DataSource = ds.Tables["Individuals"];
Line 24: dgIndividuals.DataBind();
Line 25: }
Line 26: private void DoConnect() {
OleDbConnection calendarConn = new OleDbConnection(sqlConn);
OleDbCommand selCMD = new OleDbCommand("Select * from Individuals", calendarConn);
OleDbDataAdapter sda = new OleDbDataAdapter();
sda.SelectCommand = selCMD;
DataSet ds = new DataSet();
sda.Fill(ds,"Individuals");
dgIndividuals.DataSource = ds.Tables["Individuals"];
dgIndividuals.DataBind();
}

View the full article
 
Back
Top