Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: Visual Studio doesn't detect invalid parameter type errors? Pin
Xargo23-Dec-09 2:50
Xargo23-Dec-09 2:50 
GeneralRe: Visual Studio doesn't detect invalid parameter type errors? Pin
#realJSOP23-Dec-09 8:16
professional#realJSOP23-Dec-09 8:16 
GeneralRe: Visual Studio doesn't detect invalid parameter type errors? Pin
Xargo25-Dec-09 4:44
Xargo25-Dec-09 4:44 
QuestionCapicom publish error Pin
BDJones22-Dec-09 10:45
BDJones22-Dec-09 10:45 
QuestionHost ComboBox In DataGridView Pin
Kevin Marois22-Dec-09 10:38
professionalKevin Marois22-Dec-09 10:38 
AnswerRe: Host ComboBox In DataGridView Pin
Md. Marufuzzaman22-Dec-09 10:57
professionalMd. Marufuzzaman22-Dec-09 10:57 
GeneralRe: Host ComboBox In DataGridView Pin
Kevin Marois22-Dec-09 11:10
professionalKevin Marois22-Dec-09 11:10 
Questioninsert data problem Pin
dr_move22-Dec-09 10:38
professionaldr_move22-Dec-09 10:38 
hi.
I have a problem.
a section of a project I have created excel file to transfer data from the datagridview would. I then transferred the data after checking this information to the database I want to register. I assign the following code to add a record button.

string constr = "DSN=depo";
OdbcConnection con = new OdbcConnection(constr);
string firma = dataGridView2.SelectedRows[0].Cells["firma_ad"].ToString();
string miktar = dataGridView2.SelectedRows[0].Cells["miktar"].ToString();
for (int i = 0; i < dataGridView2.Rows.Count; i++)
{

con.Open();
OdbcCommand cmd_ec = new OdbcCommand();
OdbcDataAdapter adapter_ec = new OdbcDataAdapter();
string sql_ec = "insert into siparis (firma_ad,miktar)values ('" + firma + "','" + miktar + "')";
OdbcDataAdapter adpt_ec = new OdbcDataAdapter(sql_ec, con);
DataSet dsett_ec = new DataSet();
adpt_ec.Fill(dsett_ec, "Firmaya_göre_parçaları belirle");
con.Close();


But it also said there is an error in the code. excel file with this code when processing the same record over and over again until my yaıt line goes. Add the information in the same row is continuous.

Please let me know solution for my problem. How do I need to follow a path?

Thanks.
AnswerRe: insert data problem Pin
Md. Marufuzzaman22-Dec-09 11:03
professionalMd. Marufuzzaman22-Dec-09 11:03 
Questionis there any binary to decimal convertor class Pin
hotthoughtguy22-Dec-09 10:04
hotthoughtguy22-Dec-09 10:04 
AnswerRe: is there any binary to decimal convertor class Pin
Luc Pattyn22-Dec-09 10:16
sitebuilderLuc Pattyn22-Dec-09 10:16 
GeneralRe: is there any binary to decimal convertor class Pin
hotthoughtguy22-Dec-09 10:18
hotthoughtguy22-Dec-09 10:18 
GeneralRe: is there any binary to decimal convertor class Pin
Luc Pattyn22-Dec-09 10:27
sitebuilderLuc Pattyn22-Dec-09 10:27 
GeneralRe: is there any binary to decimal convertor class Pin
#realJSOP22-Dec-09 10:47
professional#realJSOP22-Dec-09 10:47 
AnswerRe: is there any binary to decimal convertor class Pin
DaveyM6926-Dec-09 16:09
professionalDaveyM6926-Dec-09 16:09 
GeneralRe: is there any binary to decimal convertor class Pin
hotthoughtguy26-Dec-09 22:43
hotthoughtguy26-Dec-09 22:43 
Questioncustom shaped windows forms in c# problem Pin
hosseinghazanfary22-Dec-09 7:35
hosseinghazanfary22-Dec-09 7:35 
AnswerRe: custom shaped windows forms in c# problem Pin
Md. Marufuzzaman22-Dec-09 9:26
professionalMd. Marufuzzaman22-Dec-09 9:26 
QuestionStoring 2 bytes in one Pin
Chris Copeland22-Dec-09 5:57
mveChris Copeland22-Dec-09 5:57 
Answercrap Pin
Luc Pattyn22-Dec-09 6:21
sitebuilderLuc Pattyn22-Dec-09 6:21 
GeneralRe: crap Pin
Chris Copeland22-Dec-09 6:25
mveChris Copeland22-Dec-09 6:25 
GeneralRe: crap Pin
Luc Pattyn22-Dec-09 7:58
sitebuilderLuc Pattyn22-Dec-09 7:58 
AnswerRe: Storing 2 bytes in one Pin
harold aptroot22-Dec-09 6:29
harold aptroot22-Dec-09 6:29 
GeneralRe: Storing 2 bytes in one Pin
Chris Copeland22-Dec-09 6:51
mveChris Copeland22-Dec-09 6:51 
GeneralRe: Storing 2 bytes in one Pin
harold aptroot22-Dec-09 6:55
harold aptroot22-Dec-09 6:55 

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.