在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);
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);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货