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 SharmaRank #1,589 · 999 reputationPosted Oct 2, 2015, 10:54 PM EDT
Vipan SharmaRank #1,589 · 999 reputationPosted Oct 2, 2015, 8:53 PM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Oct 2, 2015, 7:50 AM EDT
Abhay ShankerRank #375 · 6.7K reputationPosted Oct 2, 2015, 6:22 PM EDT
vinod jangir111 reputationPosted Oct 2, 2015, 7:35 PM EDT
vinod jangir111 reputationPosted Oct 2, 2015, 9:43 PM EDT
Vipan SharmaRank #1,589 · 999 reputationPosted Oct 2, 2015, 10:13 PM EDT
vinod jangir111 reputationPosted Oct 2, 2015, 10:47 PM EDT
Vipan SharmaRank #1,589 · 999 reputationPosted Oct 2, 2015, 10:49 PM EDT