cmd = new OleDbCommand("Update [hoddo] set [hoddo]=[@lk] where [ID]=[@id]", con); cmd.Parameters.AddWithValue("@id", dgrow); cmd.Parameters.AddWithValue("@lk", textBox1.Text); cmd.ExecuteNonQuery();
dgrow
PARAMETERS [pID] INT, [pHoddo] INT; SELECT ... FROM ... WHERE [hoddo]=[pHoddo] AND [ID]=[pID]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)