In my application I am using a grid view control.
I am creating a new empty row in my grid view control using the following code:
string co = ConfigurationSettings.AppSettings["MyLogin"];
SqlConnection connection = new SqlConnection(co);
connection.Open();
string sql = "insert into TeamMember_table "
+ "values('','','','','','','','','','','','')";
SqlDataAdapter dp = new SqlDataAdapter(sql, connection);
DataSet ds = new DataSet();
dp.Fill(ds);
gridview1.DataBind();
connection.Close();
The empty row was added successfully, but my problem is I want to enter values into this empty row and save this value to a table when I click my save button.
What is the best way to do this?