看板 Visual_Basic 關於我們 聯絡資訊
使用ASP.NET ,資料庫使用SQL2000 資料表名稱OA, 我在DataGrid1_DeleteComman中寫了刪除程式 程式如下: Dim index As Integer index = e.Item.ItemIndex DataView1.Delete(index) SqlDataAdapter1.Update(DataSet11.QA) DataGrid1.DataBind() 物件DataView中Table的屬性有設定 ,DataGrid的souse也有設定為DataView ,索引鍵也有 設定好 可是依然無法刪除~"~ 但是畫面有執行程式中倒數第二行的網頁更新 請各位大大幫忙解救~到底還有哪裡出了問題! p.s:A資料表的索引鍵有在B資料表出現,這樣會引響刪除功能嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 192.192.228.176
fumizuki:DataView 是記憶體中的快取資料 03/01 21:26
fumizuki:應該要用 SqlCommand 來執行刪除吧 03/01 21:27