i add Test_Result column in table and i fill data from client side but i confuse
help me
for (int r = 0; r < dataGridView1.RowCount; r++)
{
if (con.State == ConnectionState.Closed)
con.Open();
SqlCommand cmd1 = new SqlCommand ("Insert Into Admission(Test_Result) Values (" + Row[Test_Result].ToString() +")");
//cmd1.Parameters.AddWithValue("Test_Result", dataGridView1.Rows[e.RowIndex].Cells[3].Value);
com.ExecuteNonQuery();
con.Close();
FrmTest fc = new FrmTest();
MessageBox.Show("Inserted sucessfully");
this.Close();
}
Vipan SharmaPosted Oct 3, 2015, 2:54 AM
Vipan SharmaPosted Oct 3, 2015, 2:49 AM
vinod jangirPosted Oct 3, 2015, 2:47 AM
Vipan SharmaPosted Oct 3, 2015, 2:13 AM
vinod jangirPosted Oct 3, 2015, 1:43 AM
Vipan SharmaPosted Oct 3, 2015, 12:53 AM
vinod jangirPosted Oct 2, 2015, 11:35 PM
Abhay ShankerPosted Oct 2, 2015, 10:22 PM
Manas MohapatraPosted Oct 2, 2015, 11:50 AM