سلام
من اینو نوشتم برای آپدیت گرید ویو
SqlDataAdapter dt;
DataSet ds;
SqlCommandBuilder com_b;
dt = new SqlDataAdapter("select * from log", objcon);
ds = new DataSet();
dt.Fill(ds, "t");
com_b = new SqlCommandBuilder(dt);
dataGridView1.DataSource = ds;
dataGridView1.DataMember = "t";
اینم تویه دکمه
dt.Update(ds, "t");
ولی این ارور رو میده
Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information.