adap = new SqlDataAdapter("select * from customer1", con); ds = new DataSet(); adap.Fill(ds); SqlCommandBuilder cb = new SqlCommandBuilder(adap); foreach (DataRow dr in ds.Tables[0].Rows) { if (dr[0].ToString() == TextBox1.Text)//text box have data of first column of a row { dr[1] = TextBox2.Text;//text box have data of second column of a row dr[2] = TextBox3.Text;//text box have data of third column of a row } } ds.AcceptChanges(); adap.Update(ds); GridView1.DataSource = ds; GridView1.DataBind();
adap.Update(ds); ds.AcceptChanges();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)