Deleting a row from the grid works, but for some reason it is not removed from the database. The bd.sqlite table is the tovari table.
private void button4_Click(object sender, EventArgs e) { int ind = dataGridView1.SelectedCells[0].RowIndex; dataGridView1.Rows.RemoveAt(ind); m_dbConn = new SQLiteConnection("Data Source=" + dbFileName + ";Version=3;"); m_dbConn.Open(); m_sqlCmd.Connection = m_dbConn; string del = "DELETE FROM tovari WHERE id"; SQLiteCommand command = new SQLiteCommand(del, m_dbConn); }