在GRIDVIEW里删除了1行记录,但是发现数据库没删,不知道为什么请大家帮帮忙~~~
            int index = 0;//dataGridView1中ID列的索引
            string temp = string.Format("delete from T_Purchasing where T_Id={0}",dataGridView1[index, dataGridView1.SelectedCells[0].RowIndex].Value);dataGridView1.Rows.RemoveAt(dataGridView1.SelectedCells[0].RowIndex);