-6
string CommandText = "insert into dbo.printing_list(batch_code,bill_no,date,sr_no,gross_wt,core_wt,nett_wt,c_id,category) values('" +
comboBox2.Text.ToString() +
"','" + textBox1.Text.ToString() + "','" +
dateTimePicker1.Value + "','" +
dataGridView1.Rows[i].Cells[1].Value + "','" +
Convert.ToDecimal(dataGridView1.Rows[i].Cells[2].Value) +
"','" + Convert.ToDecimal(label2.Text.ToString()) + "','" +
dataGridView1.Rows[i].Cells[3].Value + "','" + g + "','" +
comboBox1.Text.ToString() + "')";
Какой вопрос? –
Пожалуйста, попробуйте [поиск] (http://stackoverflow.com/search?q=input+string+is+not+in+correct+format), вы не первый, кто столкнулся с этой ошибкой. :) – CodeCaster
@CodeCaster: 2742 показов :-) ** ОПРЕДЕЛЕННО ** не первый ..... –